Class: Crubyflie::TOCElement
- Inherits:
-
Object
- Object
- Crubyflie::TOCElement
- Defined in:
- lib/crubyflie/crazyflie/toc.rb
Overview
Base class for a TocElement. To be extended by specific classes
Direct Known Subclasses
Instance Attribute Summary collapse
-
#access ⇒ Object
readonly
Initializes a TOC element.
-
#ctype ⇒ Object
readonly
Initializes a TOC element.
-
#directive ⇒ Object
readonly
Initializes a TOC element.
-
#group ⇒ Object
readonly
Initializes a TOC element.
-
#ident ⇒ Object
readonly
Initializes a TOC element.
-
#name ⇒ Object
readonly
Initializes a TOC element.
-
#type_id ⇒ Object
readonly
Initializes a TOC element.
Instance Method Summary collapse
-
#initialize(element_h) ⇒ TOCElement
constructor
A new instance of TOCElement.
Constructor Details
#initialize(element_h) ⇒ TOCElement
Returns a new instance of TOCElement.
30 31 32 33 34 35 36 37 38 |
# File 'lib/crubyflie/crazyflie/toc.rb', line 30 def initialize(element_h) @ident = element_h.delete(:ident) || 0 @group = element_h.delete(:group) || "" @name = element_h.delete(:name) || "" @ctype = element_h.delete(:ctype) || "" @type_id = element_h.delete(:type_id) || -1 @directive = element_h.delete(:directive) || "" @access = element_h.delete(:access) || 0 end |
Instance Attribute Details
#access ⇒ Object (readonly)
Initializes a TOC element
29 30 31 |
# File 'lib/crubyflie/crazyflie/toc.rb', line 29 def access @access end |
#ctype ⇒ Object (readonly)
Initializes a TOC element
29 30 31 |
# File 'lib/crubyflie/crazyflie/toc.rb', line 29 def ctype @ctype end |
#directive ⇒ Object (readonly)
Initializes a TOC element
29 30 31 |
# File 'lib/crubyflie/crazyflie/toc.rb', line 29 def directive @directive end |
#group ⇒ Object (readonly)
Initializes a TOC element
29 30 31 |
# File 'lib/crubyflie/crazyflie/toc.rb', line 29 def group @group end |
#ident ⇒ Object (readonly)
Initializes a TOC element
29 30 31 |
# File 'lib/crubyflie/crazyflie/toc.rb', line 29 def ident @ident end |
#name ⇒ Object (readonly)
Initializes a TOC element
29 30 31 |
# File 'lib/crubyflie/crazyflie/toc.rb', line 29 def name @name end |
#type_id ⇒ Object (readonly)
Initializes a TOC element
29 30 31 |
# File 'lib/crubyflie/crazyflie/toc.rb', line 29 def type_id @type_id end |