Class: SDC::Actionshape
- Inherits:
-
Object
- Object
- SDC::Actionshape
- Defined in:
- lib/core/ActionShape.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#shape_index ⇒ Object
Returns the value of attribute shape_index.
Instance Method Summary collapse
-
#initialize(active: true, shape_index: nil, attributes: {}) ⇒ Actionshape
constructor
A new instance of Actionshape.
- #initialize_copy(other) ⇒ Object
Constructor Details
#initialize(active: true, shape_index: nil, attributes: {}) ⇒ Actionshape
Returns a new instance of Actionshape.
11 12 13 14 15 |
# File 'lib/core/ActionShape.rb', line 11 def initialize(active: true, shape_index: nil, attributes: {}) @active = active @shape_index = shape_index @attributes = attributes end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
9 10 11 |
# File 'lib/core/ActionShape.rb', line 9 def active @active end |
#attributes ⇒ Object
Returns the value of attribute attributes.
9 10 11 |
# File 'lib/core/ActionShape.rb', line 9 def attributes @attributes end |
#shape_index ⇒ Object
Returns the value of attribute shape_index.
9 10 11 |
# File 'lib/core/ActionShape.rb', line 9 def shape_index @shape_index end |
Instance Method Details
#initialize_copy(other) ⇒ Object
17 18 19 20 |
# File 'lib/core/ActionShape.rb', line 17 def initialize_copy(other) super(other) @attributes = other.attributes.dup end |