class Shamu::JsonApi::BaseBuilder
Used by a {Serilaizer} to write fields and relationships
Attributes
context[R]
@!attribute @return [Context] the JSON serialization context.
output[R]
@!attribute @return [Hash] output hash.
Public Class Methods
new( context )
click to toggle source
@param [Context] context the current serialization context.
# File lib/shamu/json_api/base_builder.rb, line 8 def initialize( context ) @context = context @output = {} end
Public Instance Methods
compile()
click to toggle source
@return [Hash] the results output as JSON safe hash.
# File lib/shamu/json_api/base_builder.rb, line 17 def compile output end