Class: Megam::Mixins::Operations

Inherits:
Object
  • Object
show all
Includes:
Nilavu::MegamAttributes
Defined in:
lib/megam/mixins/components.rb

Constant Summary collapse

ATTRIBUTES =
[]
CI =
"ci".freeze
CI_DESCRIPTON =
"always up to date code. sweet."

Constants included from Nilavu::MegamAttributes

Nilavu::MegamAttributes::KEY, Nilavu::MegamAttributes::VALUE

Instance Method Summary collapse

Methods included from Nilavu::MegamAttributes

#attributes, #set_attributes

Constructor Details

#initialize(params) ⇒ Operations

Returns a new instance of Operations.



57
58
59
# File 'lib/megam/mixins/components.rb', line 57

def initialize(params)
  set_attributes(params)
end

Instance Method Details

#add_operation(type, desc, properties) ⇒ Object



61
62
63
64
# File 'lib/megam/mixins/components.rb', line 61

def add_operation(type, desc, properties)
  ATTRIBUTES.merge(properties)
  set_attributes(properties)
end

#to_hashObject



66
67
68
69
70
# File 'lib/megam/mixins/components.rb', line 66

def to_hash
  #{   'type' => 'ci',
  #   'description' => 'Continous Integration',
  #   'properties' => self.to_hash
end