Class: Mkmapi::Agent
- Inherits:
-
Struct
- Object
- Struct
- Mkmapi::Agent
- Defined in:
- lib/mkmapi/agent.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#last ⇒ Object
readonly
Returns the value of attribute last.
Instance Method Summary collapse
Instance Attribute Details
#auth ⇒ Object
Returns the value of attribute auth
5 6 7 |
# File 'lib/mkmapi/agent.rb', line 5 def auth @auth end |
#connection ⇒ Object
Returns the value of attribute connection
5 6 7 |
# File 'lib/mkmapi/agent.rb', line 5 def connection @connection end |
#last ⇒ Object (readonly)
Returns the value of attribute last.
7 8 9 |
# File 'lib/mkmapi/agent.rb', line 7 def last @last end |
Instance Method Details
#delete(path) ⇒ Object
19 20 21 |
# File 'lib/mkmapi/agent.rb', line 19 def delete(path) raise NotImplementedError end |
#get(path) ⇒ Object
9 10 11 |
# File 'lib/mkmapi/agent.rb', line 9 def get(path) process(:get, path) end |
#post(path, body) ⇒ Object
16 17 18 |
# File 'lib/mkmapi/agent.rb', line 16 def post(path, body) raise NotImplementedError end |
#put(path, body) ⇒ Object
13 14 15 |
# File 'lib/mkmapi/agent.rb', line 13 def put(path, body) raise NotImplementedError end |