Class: Megam::Mixins::Operations
- Inherits:
-
Object
- Object
- Megam::Mixins::Operations
- 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
- #add_operation(type, desc, properties) ⇒ Object
-
#initialize(params) ⇒ Operations
constructor
A new instance of Operations.
- #to_hash ⇒ Object
Methods included from Nilavu::MegamAttributes
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_hash ⇒ Object
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 |