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
- #delete(path) ⇒ Object
- #get(path, query_params = {}) ⇒ Object
- #post(path, body) ⇒ Object
- #put(path, body) ⇒ Object
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.
6 7 8 |
# File 'lib/mkmapi/agent.rb', line 6 def last @last end |
Instance Method Details
#delete(path) ⇒ Object
20 21 22 |
# File 'lib/mkmapi/agent.rb', line 20 def delete(path) raise NotImplementedError end |
#get(path, query_params = {}) ⇒ Object
8 9 10 |
# File 'lib/mkmapi/agent.rb', line 8 def get(path, query_params = {}) process(:get, path, query_params) 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
12 13 14 |
# File 'lib/mkmapi/agent.rb', line 12 def put(path, body) raise NotImplementedError end |