class Ekispert::Information::Line

Attributes

color_list[R]
corporation[RW]
name_list[R]
type_list[R]

Public Class Methods

new(element) click to toggle source
Calls superclass method Ekispert::EkispertBase::new
# File lib/ekispert/information/line.rb, line 7
def initialize(element)
  @name_list = []
  @type_list = []
  @color_list = []
  super(element)
end

Public Instance Methods

color() click to toggle source
# File lib/ekispert/information/line.rb, line 26
def color
  @color_list[0].text
end
name() click to toggle source
# File lib/ekispert/information/line.rb, line 14
def name
  @name_list[0].text
end
type() click to toggle source
# File lib/ekispert/information/line.rb, line 18
def type
  @type_list[0].text
end
type_detail() click to toggle source
# File lib/ekispert/information/line.rb, line 22
def type_detail
  @type_list[0].respond_to?(:detail) ? @type_list[0].detail : nil
end