Sha256: cb2bfefc9a16ab9acd5781a829c047ec7cb480b392e4c30c4791683fc1c92230

Contents?: true

Size: 340 Bytes

Versions: 9

Compression:

Stored size: 340 Bytes

Contents

module PostmanMta
  class Message < ApplicationModel
    def find(token)
      get("/messages/#{token}")
    end

    def create(params)
      post('/messages', body: params)
    end

    def unread_stats
      get('/stats/messages/unread')
    end

    def search(params = {})
      get('/search/messages', body: params)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
postman_mta-0.2.8 app/models/postman_mta/message.rb
postman_mta-0.2.7 app/models/postman_mta/message.rb
postman_mta-0.2.6 app/models/postman_mta/message.rb
postman_mta-0.2.4 app/models/postman_mta/message.rb
postman_mta-0.2.3 app/models/postman_mta/message.rb
postman_mta-0.2.2 app/models/postman_mta/message.rb
postman_mta-0.2.1 app/models/postman_mta/message.rb
postman_mta-0.2.0 app/models/postman_mta/message.rb
postman_mta-0.1.9 app/models/postman_mta/message.rb