Class: PostmanMta::Attachment

Inherits:
ApplicationModel show all
Defined in:
app/models/postman_mta/attachment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message_token) ⇒ Attachment



5
6
7
# File 'app/models/postman_mta/attachment.rb', line 5

def initialize(message_token)
  @message_token = message_token
end

Instance Attribute Details

#message_tokenObject (readonly)

Returns the value of attribute message_token.



3
4
5
# File 'app/models/postman_mta/attachment.rb', line 3

def message_token
  @message_token
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