Class: Botch::Client::AbstractClient

Inherits:
Object
  • Object
show all
Defined in:
lib/botch/clients/abstract_client.rb

Direct Known Subclasses

FaradayClient, MechanizeClient

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAbstractClient

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

#clientObject (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, options = {})
  # return a response object
end

#post(url, options = {}) ⇒ Object



14
15
# File 'lib/botch/clients/abstract_client.rb', line 14

def post(url, options = {})
end