Sha256: 7960060ecb32c199180df4dcdbc6b5f3a483cd6a2d9902a03355f25eb00ca845

Contents?: true

Size: 265 Bytes

Versions: 8

Compression:

Stored size: 265 Bytes

Contents

module PostmanMta
  class Route < ApplicationModel
    def index
      get('/routes')
    end

    def update(uuid, params = {})
      patch("/routes/#{uuid}", body: params)
    end

    def create(params = {})
      post('/routes', body: params)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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