Sha256: 8b89ef710f9e3294a3518b56be0f8c3f292d074523a69245a83303484cbdd1a2

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

module PostmanMta
  class Attachment < ApplicationModel
    attr_reader :message_token

    def initialize(message_token)
      @message_token = message_token
    end

    def find(uuid)
      get("/api/v1/messages/#{message_token}/attachments/#{uuid}")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
postman_mta-0.1.7 app/models/postman_mta/attachment.rb
postman_mta-0.1.6 app/models/postman_mta/attachment.rb
postman_mta-0.1.5 app/models/postman_mta/attachment.rb
postman_mta-0.1.4 app/models/postman_mta/attachment.rb
postman_mta-0.1.3 app/models/postman_mta/attachment.rb