Class: Ekispert::Information::Line
- Inherits:
-
EkispertBase
- Object
- EkispertBase
- Ekispert::Information::Line
- Defined in:
- lib/ekispert/information/line.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#color_list ⇒ Object
readonly
Returns the value of attribute color_list.
-
#corporation ⇒ Object
Returns the value of attribute corporation.
-
#name_list ⇒ Object
readonly
Returns the value of attribute name_list.
-
#type_list ⇒ Object
readonly
Returns the value of attribute type_list.
Instance Method Summary collapse
- #color ⇒ Object
-
#initialize(element) ⇒ Line
constructor
A new instance of Line.
- #name ⇒ Object
- #type ⇒ Object
- #type_detail ⇒ Object
Methods included from Util
Constructor Details
#initialize(element) ⇒ Line
7 8 9 10 11 12 |
# File 'lib/ekispert/information/line.rb', line 7 def initialize(element) @name_list = [] @type_list = [] @color_list = [] super(element) end |
Instance Attribute Details
#color_list ⇒ Object (readonly)
Returns the value of attribute color_list.
4 5 6 |
# File 'lib/ekispert/information/line.rb', line 4 def color_list @color_list end |
#corporation ⇒ Object
Returns the value of attribute corporation.
5 6 7 |
# File 'lib/ekispert/information/line.rb', line 5 def corporation @corporation end |
#name_list ⇒ Object (readonly)
Returns the value of attribute name_list.
4 5 6 |
# File 'lib/ekispert/information/line.rb', line 4 def name_list @name_list end |
#type_list ⇒ Object (readonly)
Returns the value of attribute type_list.
4 5 6 |
# File 'lib/ekispert/information/line.rb', line 4 def type_list @type_list end |
Instance Method Details
#color ⇒ Object
26 27 28 |
# File 'lib/ekispert/information/line.rb', line 26 def color @color_list[0].text end |
#name ⇒ Object
14 15 16 |
# File 'lib/ekispert/information/line.rb', line 14 def name @name_list[0].text end |
#type ⇒ Object
18 19 20 |
# File 'lib/ekispert/information/line.rb', line 18 def type @type_list[0].text end |
#type_detail ⇒ Object
22 23 24 |
# File 'lib/ekispert/information/line.rb', line 22 def type_detail @type_list[0].respond_to?(:detail) ? @type_list[0].detail : nil end |