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