Class: YouGotListed::Agent

Inherits:
Resource show all
Defined in:
lib/you_got_listed/agent.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize, #process_get, #process_post

Constructor Details

This class inherits a constructor from YouGotListed::Resource

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_allObject



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