Class: Hci::Client

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



8
9
10
# File 'lib/hci/client.rb', line 8

def api_key
  @api_key
end

.callback_hostObject

Returns the value of attribute callback_host.



11
12
13
# File 'lib/hci/client.rb', line 11

def callback_host
  @callback_host
end

.callback_pathObject

Returns the value of attribute callback_path.



12
13
14
# File 'lib/hci/client.rb', line 12

def callback_path
  @callback_path
end

.http_end_pointObject

Returns the value of attribute http_end_point.



10
11
12
# File 'lib/hci/client.rb', line 10

def http_end_point
  @http_end_point
end

.load_pathObject

Returns the value of attribute load_path.



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

def load_path
  @load_path
end

Class Method Details

.callback_urlObject



24
25
26
# File 'lib/hci/client.rb', line 24

def callback_url
  callback_host + '/' + callback_path
end

.load!Object



18
19
20
21
22
# File 'lib/hci/client.rb', line 18

def load!
  Dir[File.join(load_path, "*.rb")].each do |file|
    load file
  end
end

.versionObject



14
15
16
# File 'lib/hci/client.rb', line 14

def version
  Hci::VERSION
end