Class: Vidsy::Data::API::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/vidsy/data/api/configuration.rb

Constant Summary collapse

DEFAULT_VERSION =
"v1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.endpointObject

Returns the value of attribute endpoint.



10
11
12
# File 'lib/vidsy/data/api/configuration.rb', line 10

def endpoint
  @endpoint
end

.routesObject



18
19
20
# File 'lib/vidsy/data/api/configuration.rb', line 18

def routes
  OpenStruct.new @routes
end

.versionObject



22
23
24
# File 'lib/vidsy/data/api/configuration.rb', line 22

def version
  @version ||= DEFAULT_VERSION
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



13
14
15
16
# File 'lib/vidsy/data/api/configuration.rb', line 13

def configure(&block)
  yield self
  self
end