Class: Wes::Data::API::Configuration
- Inherits:
-
Object
- Object
- Wes::Data::API::Configuration
- Defined in:
- lib/wes/data/api/configuration.rb
Constant Summary collapse
- DEFAULT_VERSION =
"v1".freeze
Class Attribute Summary collapse
-
.endpoint ⇒ Object
Returns the value of attribute endpoint.
- .routes ⇒ Object
- .version ⇒ Object
Class Method Summary collapse
Class Attribute Details
.endpoint ⇒ Object
Returns the value of attribute endpoint.
8 9 10 |
# File 'lib/wes/data/api/configuration.rb', line 8 def endpoint @endpoint end |
.routes ⇒ Object
16 17 18 |
# File 'lib/wes/data/api/configuration.rb', line 16 def routes OpenStruct.new @routes end |
.version ⇒ Object
20 21 22 |
# File 'lib/wes/data/api/configuration.rb', line 20 def version @version ||= DEFAULT_VERSION end |
Class Method Details
.configure {|_self| ... } ⇒ Object
11 12 13 14 |
# File 'lib/wes/data/api/configuration.rb', line 11 def configure(&block) yield self self end |