Class: Vinapi::Client
- Inherits:
-
Object
- Object
- Vinapi::Client
- Defined in:
- lib/vinapi/client.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(username = nil, password = nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(username = nil, password = nil) ⇒ Client
Returns a new instance of Client.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/vinapi/client.rb', line 6 def initialize username = nil, password = nil if username && password @username = username @password = password @user = Requestor.new.login @username, @password else end end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
4 5 6 |
# File 'lib/vinapi/client.rb', line 4 def user @user end |