Class: Vidsy::Data::API::Configuration
- Inherits:
-
Object
- Object
- Vidsy::Data::API::Configuration
- Defined in:
- lib/vidsy/data/api/configuration.rb
Constant Summary collapse
- DEFAULT_VERSION =
"v1"
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.
10 11 12 |
# File 'lib/vidsy/data/api/configuration.rb', line 10 def endpoint @endpoint end |
.routes ⇒ Object
18 19 20 |
# File 'lib/vidsy/data/api/configuration.rb', line 18 def routes OpenStruct.new @routes end |
.version ⇒ Object
22 23 24 |
# File 'lib/vidsy/data/api/configuration.rb', line 22 def version @version ||= DEFAULT_VERSION end |
Class Method Details
.configure {|_self| ... } ⇒ Object
13 14 15 16 |
# File 'lib/vidsy/data/api/configuration.rb', line 13 def configure(&block) yield self self end |