Class: Ekispert::Course::Route::Line::Stop::Point::Prefecture

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

Defined Under Namespace

Classes: Name

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#snakecase

Constructor Details

#initialize(element) ⇒ Prefecture

Returns a new instance of Prefecture.



10
11
12
13
# File 'lib/ekispert/course/route/line/stop/point/prefecture.rb', line 10

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

Instance Attribute Details

#name_listObject

Returns the value of attribute name_list.



8
9
10
# File 'lib/ekispert/course/route/line/stop/point/prefecture.rb', line 8

def name_list
  @name_list
end

Instance Method Details

#nameObject



15
16
17
# File 'lib/ekispert/course/route/line/stop/point/prefecture.rb', line 15

def name
  @name_list[0].text
end