Class: EloquaApiService::Program
- Inherits:
-
Service
- Object
- Service
- EloquaApiService::Program
show all
- Defined in:
- lib/eloqua_api_service/program.rb
Constant Summary
collapse
- BASE_PATH =
"/API/REST/1.0"
Instance Method Summary
collapse
Methods inherited from Service
#initialize, #parse, #parse_body
Instance Method Details
#all ⇒ Object
11
12
13
|
# File 'lib/eloqua_api_service/program.rb', line 11
def all
parse(self.class.get("#{BASE_PATH}/assets/programs?depth=complete", @options))
end
|
#find(id:) ⇒ Object
7
8
9
|
# File 'lib/eloqua_api_service/program.rb', line 7
def find(id:)
parse(self.class.get("#{BASE_PATH}/assets/program/#{id}?depth=complete", @options))
end
|
#find_step(id) ⇒ Object
15
16
17
|
# File 'lib/eloqua_api_service/program.rb', line 15
def find_step(id)
parse(self.class.get("#{BASE_PATH}/assets/program/step/#{id}?depth=Complete", @options))
end
|