Class: Rails::Surrender::Render::Ids
- Inherits:
-
Object
- Object
- Rails::Surrender::Render::Ids
- Defined in:
- lib/rails/surrender/render/ids.rb
Overview
Rendering the IDs of the requested resources.
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource) ⇒ Ids
constructor
A new instance of Ids.
- #parse ⇒ Object
Constructor Details
#initialize(resource) ⇒ Ids
Returns a new instance of Ids.
10 11 12 |
# File 'lib/rails/surrender/render/ids.rb', line 10 def initialize(resource) @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
8 9 10 |
# File 'lib/rails/surrender/render/ids.rb', line 8 def resource @resource end |