Class: Apiphobic::Resource::Collection

Inherits:
Model
  • Object
show all
Defined in:
lib/apiphobic/resource/collection.rb

Constant Summary collapse

DEFAULT_PROCESSORS =
%w{including filtering sorting paging indexing}.freeze

Instance Attribute Summary

Attributes inherited from Model

#id, #parameters, #processors, #resource

Instance Method Summary collapse

Methods inherited from Model

#assign_attributes, #meta, #processed, #save, #save!

Constructor Details

#initialize(**args) ⇒ Collection

Returns a new instance of Collection.



10
11
12
# File 'lib/apiphobic/resource/collection.rb', line 10

def initialize(**args)
  super(**args.merge(id: nil))
end