Module: Mrkt::CrudPrograms

Included in:
Client
Defined in:
lib/mrkt/concerns/crud_programs.rb

Instance Method Summary collapse

Instance Method Details

#browse_programs(offset: nil, max_return: nil, status: nil) ⇒ Object


3
4
5
6
7
8
9
10
11
# File 'lib/mrkt/concerns/crud_programs.rb', line 3

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

#get_program_by_id(id) ⇒ Object


13
14
15
# File 'lib/mrkt/concerns/crud_programs.rb', line 13

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