Sha256: 527752298c736d28db67b1cb41950a6bc3755feff38c3d45b837bcf8b683be1c

Contents?: true

Size: 408 Bytes

Versions: 4

Compression:

Stored size: 408 Bytes

Contents

module Mrkt
  module CrudPrograms
    def browse_programs(offset: nil, max_return: nil, status: nil)
      params = {}
      params[:offset] = offset if offset
      params[:maxReturn] = max_return if max_return
      params[:status] = status if status

      get('/rest/asset/v1/programs.json', params)
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mrkt-0.9.0 lib/mrkt/concerns/crud_programs.rb
mrkt-0.8.0 lib/mrkt/concerns/crud_programs.rb
mrkt-0.7.0 lib/mrkt/concerns/crud_programs.rb
mrkt-0.6.2 lib/mrkt/concerns/crud_programs.rb