Class: Guidestar::Connection
- Inherits:
-
Object
- Object
- Guidestar::Connection
- Defined in:
- lib/guidestar/connection.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, password, proxy = nil) ⇒ Connection
constructor
A new instance of Connection.
- #post(data) ⇒ Object
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
#password ⇒ Object (readonly)
Returns the value of attribute password.
5 6 7 |
# File 'lib/guidestar/connection.rb', line 5 def password @password end |
#username ⇒ Object (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 |