Sha256: 6685e4dcc8b2567792807e166d52b2c2b9b0dfc9a2de54f65909e39929d7f212

Contents?: true

Size: 389 Bytes

Versions: 8

Compression:

Stored size: 389 Bytes

Contents

module PostmanMta
  class Tag < ApplicationModel
    attr_reader :conversation_id

    def initialize(conversation_id)
      @conversation_id = conversation_id
    end

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
postman_mta-0.1.7 app/models/postman_mta/tag.rb
postman_mta-0.1.6 app/models/postman_mta/tag.rb
postman_mta-0.1.5 app/models/postman_mta/tag.rb
postman_mta-0.1.4 app/models/postman_mta/tag.rb
postman_mta-0.1.3 app/models/postman_mta/tag.rb
postman_mta-0.1.2 app/models/postman_mta/tag.rb
postman_mta-0.1.1 app/models/postman_mta/tag.rb
postman_mta-0.1.0 app/models/postman_mta/tag.rb