Class: Vidsy::Cloudkit::Configuration

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.namespaceObject

Returns the value of attribute namespace.



7
8
9
# File 'lib/vidsy/cloudkit/configuration.rb', line 7

def namespace
  @namespace
end

.rootObject

Returns the value of attribute root.



7
8
9
# File 'lib/vidsy/cloudkit/configuration.rb', line 7

def root
  @root
end

Class Method Details

.app_configObject



9
10
11
# File 'lib/vidsy/cloudkit/configuration.rb', line 9

def app_config
  @app_config = AppConfig.new
end

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

Yields:

  • (_self)

Yield Parameters:



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

def configure(&block)
  yield self
  self
end

.envObject



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

def env
  ENV["RACK_ENV"] || "development"
end