class Nagare::Adapter

Attributes

collection[R]
serializer[R]

Public Class Methods

new(serializer, collection: false) click to toggle source
# File lib/nagare.rb, line 117
def initialize(serializer, collection: false)
  @serializer = serializer
  @collection = collection
end

Public Instance Methods

as_json(options = nil) click to toggle source
# File lib/nagare.rb, line 122
def as_json(options = nil)
  serializer.as_json(options)
end