Class: Rack::Gyazo::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/gyazo/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Configuration

Returns a new instance of Configuration.



4
5
6
# File 'lib/rack/gyazo/configuration.rb', line 4

def initialize(options = {})
  @configuration = options
end

Instance Method Details

#[](key) ⇒ Object



8
9
10
# File 'lib/rack/gyazo/configuration.rb', line 8

def [](key)
  @configuration[key]
end

#cnameObject



12
13
14
# File 'lib/rack/gyazo/configuration.rb', line 12

def cname
  @configuration[:cname]
end