Class: Connect::WebService::Client

Inherits:
Object
  • Object
show all
Includes:
Connection, Rest
Defined in:
lib/connect/web_service/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Rest

#add_param, #client_user_read, #department_add, #department_delete, #department_edit, #department_read, #get_opened_service_treatments, #region_read, #specialist_add, #specialist_read

Methods included from Connect::WebService::ConnectParameters::ParamsFactory

#create_changed_from, #create_date, #create_date_time, #create_parameter, #create_string

Methods included from Request

#call

Methods included from Connection

#create_connection

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.



11
12
13
14
15
# File 'lib/connect/web_service/client.rb', line 11

def initialize(options)
  @login = options[:login]
  @password = options[:password]
  @connection = create_connection(self)
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



9
10
11
# File 'lib/connect/web_service/client.rb', line 9

def connection
  @connection
end

#loginObject (readonly)

Returns the value of attribute login.



9
10
11
# File 'lib/connect/web_service/client.rb', line 9

def 
  @login
end

#passwordObject (readonly)

Returns the value of attribute password.



9
10
11
# File 'lib/connect/web_service/client.rb', line 9

def password
  @password
end