Class: HelpScout::SingleItemEnvelope

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

Overview

Single Item Envelope

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ SingleItemEnvelope

Creates a new SingleItemEnvelope object from a Hash of attributes



24
25
26
# File 'lib/helpscout/models.rb', line 24

def initialize(object)
  @item = object["item"]
end

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



21
22
23
# File 'lib/helpscout/models.rb', line 21

def item
  @item
end