Class: Vinapi::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/vinapi/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username = nil, password = nil) ⇒ 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. @username, @password
	else

	end
end

Instance Attribute Details

#userObject (readonly)

Returns the value of attribute user.



4
5
6
# File 'lib/vinapi/client.rb', line 4

def user
  @user
end