Sha256: 0d143d1decdc169d5f1a9a308417f509949f60d8650fe24eb7ce78b77b46c4c6

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

module Kentaa
  module Api
    module Requests
      class Actions < Base
        include Kentaa::Api::Requests::All

        def list(options = {})
          response = request.get("/actions", options)
          Kentaa::Api::Responses::Actions.new(response)
        end

        def get(id)
          response = request.get("/actions/#{id}")
          Kentaa::Api::Responses::Action.new(response)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kentaa-api-0.1.1 lib/kentaa/api/requests/actions.rb