Class: SweeperAPI::Configuration
- Inherits:
-
Object
- Object
- SweeperAPI::Configuration
- Defined in:
- lib/sweeper_api/configuration.rb
Constant Summary collapse
- VALID_SCHEMES =
%w(http https).freeze
- InvalidHostError =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#default_host ⇒ Object
Returns the value of attribute default_host.
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 |
# File 'lib/sweeper_api/configuration.rb', line 8 def initialize @default_host = "https://www.sweeper.io" end |
Instance Attribute Details
#default_host ⇒ Object
Returns the value of attribute default_host.
6 7 8 |
# File 'lib/sweeper_api/configuration.rb', line 6 def default_host @default_host end |