Module: JSONAPI::Realizer::Resource
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/jsonapi/realizer/resource.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
6 7 8 |
# File 'lib/jsonapi/realizer/resource.rb', line 6 def model @model end |
Instance Method Details
#initialize(model) ⇒ Object
8 9 10 |
# File 'lib/jsonapi/realizer/resource.rb', line 8 def initialize(model) @model = model end |