Class: YouGotListed::Agent
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize, #process_get, #process_post
Instance Method Details
#find(agent_id) ⇒ Object
12
13
14
|
# File 'lib/you_got_listed/agent.rb', line 12
def find(agent_id)
get_agent(agent_id, true)
end
|
#find_all ⇒ Object
4
5
6
|
# File 'lib/you_got_listed/agent.rb', line 4
def find_all
process_get("/agents/search.php")
end
|
#find_by_id(agent_id) ⇒ Object
8
9
10
|
# File 'lib/you_got_listed/agent.rb', line 8
def find_by_id(agent_id)
get_agent(agent_id)
end
|