Module: Transistor

Defined in:
lib/transistor.rb,
lib/transistor/error.rb,
lib/transistor/client.rb,
lib/transistor/version.rb,
lib/transistor/middleware/authentication.rb

Defined Under Namespace

Modules: Middleware Classes: Client, Config, Error

Constant Summary collapse

Version =
'0.0.2'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



6
7
8
# File 'lib/transistor.rb', line 6

def config
  @config
end

Class Method Details

.setup {|config| ... } ⇒ Object

Yields:



55
56
57
58
# File 'lib/transistor.rb', line 55

def self.setup
  self.config ||= Config.new
  yield(config)
end