Method: Instapi#client
- Defined in:
- lib/instapi.rb
#client ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/instapi.rb', line 15 def client return @client if @client @client = HTTPClient.new @client.post("#{BASE_URL}/user/login", :username => username, :password => password) raise LoginError if @client..empty? @client end |