Module: GClouder::Mappings::ResourceRepresentation

Includes:
Logging
Defined in:
lib/gclouder/mappings/resource_representation.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Logging

#add, #bad, #change, #debug, #error, #fatal, #good, #info, log, loggers, #remove, report, #resource_state, setup, #warn, #warning

Class Method Details

.included(klass) ⇒ Object



22
23
24
# File 'lib/gclouder/mappings/resource_representation.rb', line 22

def self.included(klass)
  klass.extend ResourceRepresentation
end

.loadObject



14
15
16
# File 'lib/gclouder/mappings/resource_representation.rb', line 14

def self.load
  mappings
end

.mappingsObject



10
11
12
# File 'lib/gclouder/mappings/resource_representation.rb', line 10

def self.mappings
  GClouder::ConfigLoader.load("../../assets/resource_representations")
end

.section(section) ⇒ Object



26
27
28
# File 'lib/gclouder/mappings/resource_representation.rb', line 26

def self.section(section)
  GClouder::ConfigSection.find(section, mappings)
end

Instance Method Details

#resource_representationObject



18
19
20
# File 'lib/gclouder/mappings/resource_representation.rb', line 18

def resource_representation
  ResourceRepresentation.mappings
end