Module: MagnumPI

Defined in:
lib/magnum-pi.rb,
lib/magnum-pi/api.rb,
lib/magnum-pi/dsl.rb,
lib/magnum-pi/version.rb,
lib/magnum-pi/api/scheme.rb,
lib/magnum-pi/api/consumer.rb,
lib/magnum-pi/api/instance.rb,
lib/magnum-pi/api/resources.rb

Defined Under Namespace

Modules: API Classes: DSL

Constant Summary collapse

MAJOR =
0
MINOR =
1
TINY =
3
VERSION =
[MAJOR, MINOR, TINY].join(".")

Class Method Summary collapse

Class Method Details

.debug_output(bool = true) ⇒ Object



17
18
19
# File 'lib/magnum-pi.rb', line 17

def self.debug_output(bool = true)
  @debug_output = bool
end

.debug_output?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/magnum-pi.rb', line 21

def self.debug_output?
  !!@debug_output
end

.extended(base) ⇒ Object



13
14
15
# File 'lib/magnum-pi.rb', line 13

def self.extended(base)
  base.extend API
end