Class: MaxApiClient::MediaAttachment
- Inherits:
-
Attachment
- Object
- Attachment
- MaxApiClient::MediaAttachment
- Defined in:
- lib/max_api_client/attachments.rb
Overview
Shared attachment implementation for upload-backed media objects.
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token: nil) ⇒ MediaAttachment
constructor
A new instance of MediaAttachment.
- #payload ⇒ Object
Methods inherited from Attachment
Constructor Details
#initialize(token: nil) ⇒ MediaAttachment
Returns a new instance of MediaAttachment.
15 16 17 18 |
# File 'lib/max_api_client/attachments.rb', line 15 def initialize(token: nil) super() @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
13 14 15 |
# File 'lib/max_api_client/attachments.rb', line 13 def token @token end |
Instance Method Details
#payload ⇒ Object
20 21 22 |
# File 'lib/max_api_client/attachments.rb', line 20 def payload { token: token } end |