Class: Guidestar::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/guidestar/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, password, proxy = nil) ⇒ Connection

Returns a new instance of Connection.



7
8
9
10
11
# File 'lib/guidestar/connection.rb', line 7

def initialize(username, password, proxy=nil)
  @username = username
  @password = password
  @proxy = proxy
end

Instance Attribute Details

#passwordObject (readonly)

Returns the value of attribute password.



5
6
7
# File 'lib/guidestar/connection.rb', line 5

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



5
6
7
# File 'lib/guidestar/connection.rb', line 5

def username
  @username
end

Instance Method Details

#post(data) ⇒ Object



13
14
15
# File 'lib/guidestar/connection.rb', line 13

def post(data)
  request :post, data
end