Sha256: 83e367e7a9a91ad40b2dc35432105c53d767b930f441b427fe4de433510c0659

Contents?: true

Size: 375 Bytes

Versions: 10

Compression:

Stored size: 375 Bytes

Contents

module PostmanMta
  class Tag < ApplicationModel
    attr_reader :conversation_id

    def initialize(conversation_id)
      @conversation_id = conversation_id
    end

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

    def destroy(tag_id)
      delete("/conversations/#{conversation_id}/tags/#{tag_id}")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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