-
Notifications
You must be signed in to change notification settings - Fork 12
Refactor renderer. #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| end | ||
|
|
||
| describe JSONAPI, '#render' do | ||
| describe JSONAPI::Renderer, '#render' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block has too many lines. [270/25]
| # @option errors [Array<#jsonapi_id>] Errors to be rendered. | ||
| # @option include Relationships to be included. See | ||
| # JSONAPI::IncludeDirective. | ||
| # @option fields [Hash{Symbol, Array<Symbol>}, Hash{String, Array<String>}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [81/80]
| # Render a JSON API document. | ||
| # | ||
| # @param params [Hash] | ||
| # @option data [(#jsonapi_id, #jsonapi_type, #jsonapi_related, #as_jsonapi), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [82/80]
| require 'jsonapi/renderer/document' | ||
|
|
||
| module JSONAPI | ||
| class Renderer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing top-level class documentation comment.
Codecov Report
@@ Coverage Diff @@
## master #21 +/- ##
==========================================
- Coverage 99.33% 98.69% -0.65%
==========================================
Files 5 5
Lines 150 153 +3
==========================================
+ Hits 149 151 +2
- Misses 1 2 +1
Continue to review full report at Codecov.
|
JSONAPI::Rendereran actual class.