Class: Botch::Client::AbstractClient
- Inherits:
-
Object
- Object
- Botch::Client::AbstractClient
- Defined in:
- lib/botch/clients/abstract_client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #get(url, options = {}) ⇒ Object
-
#initialize ⇒ AbstractClient
constructor
A new instance of AbstractClient.
- #post(url, options = {}) ⇒ Object
Constructor Details
#initialize ⇒ AbstractClient
Returns a new instance of AbstractClient.
6 7 8 |
# File 'lib/botch/clients/abstract_client.rb', line 6 def initialize @client = nil end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/botch/clients/abstract_client.rb', line 4 def client @client end |
Instance Method Details
#get(url, options = {}) ⇒ Object
10 11 12 |
# File 'lib/botch/clients/abstract_client.rb', line 10 def get(url, = {}) # return a response object end |
#post(url, options = {}) ⇒ Object
14 15 |
# File 'lib/botch/clients/abstract_client.rb', line 14 def post(url, = {}) end |