Class: PostmanMta::Attachment
- Inherits:
-
ApplicationModel
- Object
- ApplicationModel
- PostmanMta::Attachment
- Defined in:
- app/models/postman_mta/attachment.rb
Instance Attribute Summary collapse
-
#message_token ⇒ Object
readonly
Returns the value of attribute message_token.
Instance Method Summary collapse
- #find(uuid) ⇒ Object
-
#initialize(message_token) ⇒ Attachment
constructor
A new instance of Attachment.
Constructor Details
#initialize(message_token) ⇒ Attachment
5 6 7 |
# File 'app/models/postman_mta/attachment.rb', line 5 def initialize() = end |
Instance Attribute Details
#message_token ⇒ Object (readonly)
Returns the value of attribute message_token.
3 4 5 |
# File 'app/models/postman_mta/attachment.rb', line 3 def end |
Instance Method Details
#find(uuid) ⇒ Object
9 10 11 |
# File 'app/models/postman_mta/attachment.rb', line 9 def find(uuid) get("/messages/#{message_token}/attachments/#{uuid}") end |