Class: Connect::HTTPService::Client

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

Constant Summary

Constants included from Connection

Connect::HTTPService::Connection::BASE_URL

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BotApi

#appoint_spec, #appoint_start, #drop_keyboard, #drop_treatment, #send_message_colleague, #send_message_conference, #send_message_line

Methods included from Request

#get, #post

Methods included from Connection

#connection

Methods included from InformationApi

#get_competences, #get_lines, #get_specialist, #get_specialists, #get_specialists_available, #get_subscriber, #get_subscribers, #get_subscriptions, #get_ticket, #get_ticket_by_number, #get_treatments

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.



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

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

Instance Attribute Details

#loginObject (readonly)

Returns the value of attribute login.



6
7
8
# File 'lib/connect/http_service/client.rb', line 6

def 
  @login
end

#passwordObject (readonly)

Returns the value of attribute password.



6
7
8
# File 'lib/connect/http_service/client.rb', line 6

def password
  @password
end