Class: Ekispert::Information::Line

Inherits:
EkispertBase show all
Defined in:
lib/ekispert/information/line.rb

Defined Under Namespace

Classes: Color, Name, Type

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#snakecase

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_listObject (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

#corporationObject

Returns the value of attribute corporation.



5
6
7
# File 'lib/ekispert/information/line.rb', line 5

def corporation
  @corporation
end

#name_listObject (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_listObject (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

#colorObject



26
27
28
# File 'lib/ekispert/information/line.rb', line 26

def color
  @color_list[0].text
end

#nameObject



14
15
16
# File 'lib/ekispert/information/line.rb', line 14

def name
  @name_list[0].text
end

#typeObject



18
19
20
# File 'lib/ekispert/information/line.rb', line 18

def type
  @type_list[0].text
end

#type_detailObject



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