Class: Shipwire::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
16
17
# File 'lib/shipwire/configuration.rb', line 10

def initialize
  @username     = nil
  @password     = nil
  @open_timeout = 2
  @timeout      = 5
  @endpoint     = "https://api.shipwire.com"
  @logger       = false
end

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint.



3
4
5
# File 'lib/shipwire/configuration.rb', line 3

def endpoint
  @endpoint
end

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/shipwire/configuration.rb', line 3

def logger
  @logger
end

#open_timeoutObject

Returns the value of attribute open_timeout.



3
4
5
# File 'lib/shipwire/configuration.rb', line 3

def open_timeout
  @open_timeout
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/shipwire/configuration.rb', line 3

def password
  @password
end

#timeoutObject

Returns the value of attribute timeout.



3
4
5
# File 'lib/shipwire/configuration.rb', line 3

def timeout
  @timeout
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/shipwire/configuration.rb', line 3

def username
  @username
end