Class: DefraRuby::Address::Configuration
- Inherits:
-
Object
- Object
- DefraRuby::Address::Configuration
- Defined in:
- lib/defra_ruby/address/configuration.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#host ⇒ Object
Returns the value of attribute host.
-
#key ⇒ Object
Returns the value of attribute key.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/defra_ruby/address/configuration.rb', line 8 def initialize @timeout = 3 @client_id = 0 @key = "client1" end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
6 7 8 |
# File 'lib/defra_ruby/address/configuration.rb', line 6 def client_id @client_id end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/defra_ruby/address/configuration.rb', line 6 def host @host end |
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/defra_ruby/address/configuration.rb', line 6 def key @key end |
#timeout ⇒ Object
Returns the value of attribute timeout.
6 7 8 |
# File 'lib/defra_ruby/address/configuration.rb', line 6 def timeout @timeout end |