Sha256: ffc72362b2e1c1101383886e799434679afadbf6fd5654be859336bab6a40019

Contents?: true

Size: 385 Bytes

Versions: 3

Compression:

Stored size: 385 Bytes

Contents

module PostmanMta
  class Label < ApplicationModel
    attr_reader :conversation_id

    def initialize(conversation_id)
      @conversation_id = conversation_id
    end

    def create(params)
      post("/conversations/#{conversation_id}/labels", body: params)
    end

    def destroy(label_id)
      delete("/conversations/#{conversation_id}/labels/#{label_id}")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
postman_mta-0.2.0 app/models/postman_mta/label.rb
postman_mta-0.1.9 app/models/postman_mta/label.rb
postman_mta-0.1.8 app/models/postman_mta/label.rb