Class: Garbanzo::Connection
- Inherits:
-
Object
- Object
- Garbanzo::Connection
- Defined in:
- lib/garbanzo/connection.rb
Instance Attribute Summary collapse
-
#login ⇒ Object
Returns the value of attribute login.
-
#password ⇒ Object
Returns the value of attribute password.
-
#test_mode ⇒ Object
Returns the value of attribute test_mode.
Instance Method Summary collapse
-
#initialize(login = nil, password = nil, test_mode = false) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(login = nil, password = nil, test_mode = false) ⇒ Connection
Returns a new instance of Connection.
5 6 7 8 9 |
# File 'lib/garbanzo/connection.rb', line 5 def initialize(login = nil, password = nil, test_mode = false) @login = login @password = password @test_mode = test_mode end |
Instance Attribute Details
#login ⇒ Object
Returns the value of attribute login.
3 4 5 |
# File 'lib/garbanzo/connection.rb', line 3 def login @login end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/garbanzo/connection.rb', line 3 def password @password end |
#test_mode ⇒ Object
Returns the value of attribute test_mode.
3 4 5 |
# File 'lib/garbanzo/connection.rb', line 3 def test_mode @test_mode end |