Class: Ekispert::Course::Route::Line::LineSymbol

Inherits:
EkispertBase
  • Object
show all
Defined in:
lib/ekispert/course/route/line/line_symbol.rb

Defined Under Namespace

Classes: Name

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#snakecase

Constructor Details

#initialize(element) ⇒ LineSymbol

Returns a new instance of LineSymbol.



8
9
10
11
# File 'lib/ekispert/course/route/line/line_symbol.rb', line 8

def initialize(element)
  @name_list = []
  super(element)
end

Instance Attribute Details

#name_listObject (readonly)

Returns the value of attribute name_list.



6
7
8
# File 'lib/ekispert/course/route/line/line_symbol.rb', line 6

def name_list
  @name_list
end

Instance Method Details

#nameObject



13
14
15
# File 'lib/ekispert/course/route/line/line_symbol.rb', line 13

def name
  @name_list[0].text
end