Sha256: 2082fdb75718d74615930eeb2387f6075e1c4dbb68abcb9f86926e4259bf582d

Contents?: true

Size: 367 Bytes

Versions: 10

Compression:

Stored size: 367 Bytes

Contents

module Mrkt
  module CrudPrograms
    def browse_programs(offset: nil, max_return: nil, status: nil)
      optional = {
        offset: offset,
        maxReturn: max_return,
        status: status
      }

      get('/rest/asset/v1/programs.json', {}, optional)
    end

    def get_program_by_id(id)
      get("/rest/asset/v1/program/#{id}.json")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mrkt-1.2.2 lib/mrkt/concerns/crud_programs.rb
mrkt-1.2.1 lib/mrkt/concerns/crud_programs.rb
mrkt-1.2.0 lib/mrkt/concerns/crud_programs.rb
mrkt-1.1.1 lib/mrkt/concerns/crud_programs.rb
mrkt-1.1.0 lib/mrkt/concerns/crud_programs.rb
mrkt-1.0.1 lib/mrkt/concerns/crud_programs.rb
mrkt-1.0.0 lib/mrkt/concerns/crud_programs.rb
mrkt-0.11.1 lib/mrkt/concerns/crud_programs.rb
mrkt-0.11.0 lib/mrkt/concerns/crud_programs.rb
mrkt-0.10.0 lib/mrkt/concerns/crud_programs.rb