Class: TowerDataApi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/towerdata_api/configuration.rb

Constant Summary collapse

@@api_key =
nil
@@ca_file =
nil
@@bulk_timeout =
30
@@timeout =
2

Class Method Summary collapse

Class Method Details

.api_keyObject



13
14
15
# File 'lib/towerdata_api/configuration.rb', line 13

def self.api_key
  @@api_key 
end

.api_key=(api_key) ⇒ Object



9
10
11
# File 'lib/towerdata_api/configuration.rb', line 9

def self.api_key= api_key
  @@api_key = api_key
end

.begin {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



41
42
43
# File 'lib/towerdata_api/configuration.rb', line 41

def self.begin
  yield self
end

.bulk_timeout=(timeout) ⇒ Object



33
34
35
# File 'lib/towerdata_api/configuration.rb', line 33

def self.bulk_timeout= timeout
  @@bulk_timeout = timeout
end

.ca_fileObject



21
22
23
# File 'lib/towerdata_api/configuration.rb', line 21

def self.ca_file
  @@ca_file 
end

.ca_file=(ca_file) ⇒ Object



17
18
19
# File 'lib/towerdata_api/configuration.rb', line 17

def self.ca_file= ca_file
  @@ca_file = ca_file
end

.timeoutObject



29
30
31
# File 'lib/towerdata_api/configuration.rb', line 29

def self.timeout
  @@timeout 
end

.timeout=(timeout) ⇒ Object



25
26
27
# File 'lib/towerdata_api/configuration.rb', line 25

def self.timeout= timeout
  @@timeout = timeout
end