Class: EcalClient::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
15
16
# File 'lib/ecal_client.rb', line 11

def initialize
  self.key     = nil
  self.secret  = nil
  self.options = {}
  set_defaults
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



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

def key
  @key
end

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

#secretObject

Returns the value of attribute secret.



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

def secret
  @secret
end

Instance Method Details

#set_defaultsObject



18
19
20
21
# File 'lib/ecal_client.rb', line 18

def set_defaults
  options[:verbose] ||= false
  options[:read_timeout] ||= 30
end