Class: HelpScout::Conversation::AttachmentData
- Inherits:
-
Object
- Object
- HelpScout::Conversation::AttachmentData
- Defined in:
- lib/helpscout/models.rb
Overview
Conversation::AttachmentData developer.helpscout.net/objects/conversation/attachment-data/
Name Type Example Notes
id Int 887171 Unique identifier
data String base64 encoded data
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(object) ⇒ AttachmentData
constructor
Creates a new Conversation::AttachmentData object from a Hash of attributes.
Constructor Details
#initialize(object) ⇒ AttachmentData
Creates a new Conversation::AttachmentData object from a Hash of attributes
388 389 390 391 |
# File 'lib/helpscout/models.rb', line 388 def initialize(object) @id = object["id"] @data = object["data"] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
384 385 386 |
# File 'lib/helpscout/models.rb', line 384 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
384 385 386 |
# File 'lib/helpscout/models.rb', line 384 def id @id end |