Class: HelpScout::CollectionsEnvelope

Inherits:
Object
  • Object
show all
Defined in:
lib/helpscout/models.rb

Overview

Collections Envelope

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countObject (readonly)

Returns the value of attribute count.



31
32
33
# File 'lib/helpscout/models.rb', line 31

def count
  @count
end

#itemsObject (readonly)

Returns the value of attribute items.



31
32
33
# File 'lib/helpscout/models.rb', line 31

def items
  @items
end

#pageObject (readonly)

Returns the value of attribute page.



31
32
33
# File 'lib/helpscout/models.rb', line 31

def page
  @page
end

#pagesObject (readonly)

Returns the value of attribute pages.



31
32
33
# File 'lib/helpscout/models.rb', line 31

def pages
  @pages
end