Class: HelpScout::Conversation::AttachmentData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



384
385
386
# File 'lib/helpscout/models.rb', line 384

def data
  @data
end

#idObject (readonly)

Returns the value of attribute id.



384
385
386
# File 'lib/helpscout/models.rb', line 384

def id
  @id
end