Class: HelpScout::CollectionsEnvelope
- Inherits:
-
Object
- Object
- HelpScout::CollectionsEnvelope
- Defined in:
- lib/helpscout/models.rb
Overview
Collections Envelope
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
Instance Method Summary collapse
-
#initialize(object) ⇒ CollectionsEnvelope
constructor
Creates a new CollectionsEnvelope object from a Hash of attributes.
Constructor Details
#initialize(object) ⇒ CollectionsEnvelope
Creates a new CollectionsEnvelope object from a Hash of attributes
34 35 36 37 38 39 |
# File 'lib/helpscout/models.rb', line 34 def initialize(object) @page = object["page"] @pages = object["pages"] @count = object["count"] @items = object["items"] end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
31 32 33 |
# File 'lib/helpscout/models.rb', line 31 def count @count end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
31 32 33 |
# File 'lib/helpscout/models.rb', line 31 def items @items end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
31 32 33 |
# File 'lib/helpscout/models.rb', line 31 def page @page end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
31 32 33 |
# File 'lib/helpscout/models.rb', line 31 def pages @pages end |