Class: Megam::Mixins::Operations
- Inherits:
-
Object
- Object
- Megam::Mixins::Operations
- Includes:
- Nilavu::MegamAttributes
- Defined in:
- lib/megam/mixins/components.rb
Constant Summary collapse
- ATTRIBUTES =
[ :type, :desc, :prop, :status]
- CI =
'CI'.freeze
- CI_DESCRIPTON =
'always up to date code. sweet.'
- NOTBOUND =
"notbound".freeze
- BIND =
'bind'.freeze
- BIND_DESCRIPTON =
'bind. sweet.'
Constants included from Nilavu::MegamAttributes
Nilavu::MegamAttributes::KEY, Nilavu::MegamAttributes::VALUE
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#prop(params) ⇒ Object
readonly
Key_name mismatch.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(params, type, desc) ⇒ Operations
constructor
A new instance of Operations.
- #tohash ⇒ Object
Methods included from Nilavu::MegamAttributes
Constructor Details
#initialize(params, type, desc) ⇒ Operations
Returns a new instance of Operations.
115 116 117 118 119 |
# File 'lib/megam/mixins/components.rb', line 115 def initialize(params, type, desc) @type = type @desc = desc @prop = prop(params) end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
97 98 99 |
# File 'lib/megam/mixins/components.rb', line 97 def desc @desc end |
#prop(params) ⇒ Object (readonly)
Key_name mismatch. Key_name is to be changed.
134 135 136 |
# File 'lib/megam/mixins/components.rb', line 134 def prop @prop end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
97 98 99 |
# File 'lib/megam/mixins/components.rb', line 97 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
97 98 99 |
# File 'lib/megam/mixins/components.rb', line 97 def type @type end |
Instance Method Details
#attributes ⇒ Object
105 106 107 |
# File 'lib/megam/mixins/components.rb', line 105 def attributes ATTRIBUTES end |
#tohash ⇒ Object
125 126 127 128 129 130 131 |
# File 'lib/megam/mixins/components.rb', line 125 def tohash { operation_type: @type, description: @desc, properties: @prop, status: NOTBOUND } end |