Class: Rafflesia::ModuleCoordinateSystem
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ModuleCoordinateSystem
- Defined in:
- lib/rafflesia/registry/module_coordinate_system.rb
Constant Summary collapse
- HASH_ATTRS =
{ description: :description, id: :id, interval: :interval, origin: :origin, reference: :reference }.freeze
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#reference ⇒ Object
Returns the value of attribute reference.
Instance Method Summary collapse
-
#initialize(json) ⇒ ModuleCoordinateSystem
constructor
A new instance of ModuleCoordinateSystem.
Constructor Details
#initialize(json) ⇒ ModuleCoordinateSystem
Returns a new instance of ModuleCoordinateSystem.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/registry/module_coordinate_system.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @description = hash[:description] @id = hash[:id] @interval = hash[:interval] @origin = hash[:origin] @reference = hash[:reference] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
16 17 18 |
# File 'lib/rafflesia/registry/module_coordinate_system.rb', line 16 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/rafflesia/registry/module_coordinate_system.rb', line 16 def id @id end |
#interval ⇒ Object
Returns the value of attribute interval.
16 17 18 |
# File 'lib/rafflesia/registry/module_coordinate_system.rb', line 16 def interval @interval end |
#origin ⇒ Object
Returns the value of attribute origin.
16 17 18 |
# File 'lib/rafflesia/registry/module_coordinate_system.rb', line 16 def origin @origin end |
#reference ⇒ Object
Returns the value of attribute reference.
16 17 18 |
# File 'lib/rafflesia/registry/module_coordinate_system.rb', line 16 def reference @reference end |