Class: SuperReceptionist::Agent
- Inherits:
-
Object
- Object
- SuperReceptionist::Agent
- Defined in:
- lib/super_receptionist/agent.rb
Instance Method Summary collapse
- #find(id) ⇒ Object
-
#initialize(super_receptionist) ⇒ Agent
constructor
A new instance of Agent.
- #list ⇒ Object
Constructor Details
#initialize(super_receptionist) ⇒ Agent
Returns a new instance of Agent.
3 4 5 |
# File 'lib/super_receptionist/agent.rb', line 3 def initialize(super_receptionist) @super_receptionis = super_receptionist end |
Instance Method Details
#find(id) ⇒ Object
11 12 13 |
# File 'lib/super_receptionist/agent.rb', line 11 def find(id) SuperReceptionist.submit(:get, url(id)) end |
#list ⇒ Object
7 8 9 |
# File 'lib/super_receptionist/agent.rb', line 7 def list SuperReceptionist.submit(:get, url()) end |