Class: Maidcafe::Prefecture

Inherits:
ResultItem show all
Defined in:
lib/ruby-maidcafe.rb

Constant Summary collapse

ANY =
nil
HOKAIDO =
1
TOCHIGI =
9
SAITAMA =
11
TOKYO =
13
KANAGAWA =
14
GIFU =
21
AICHI =
23
OSAKA =
27
FUKUOKA =
40
KAGOSHIMA =
46

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ResultItem

#element_text, #initialize, #read, #to_s

Constructor Details

This class inherits a constructor from Maidcafe::ResultItem

Instance Attribute Details

#nameObject

Returns the value of attribute name.



215
216
217
# File 'lib/ruby-maidcafe.rb', line 215

def name
  @name
end

#tidObject

Returns the value of attribute tid.



215
216
217
# File 'lib/ruby-maidcafe.rb', line 215

def tid
  @tid
end

Instance Method Details

#attr_to_tagObject



216
# File 'lib/ruby-maidcafe.rb', line 216

def attr_to_tag; {:name => 'todouhuken', :tid => 'tid'} end

#idObject



217
# File 'lib/ruby-maidcafe.rb', line 217

def id; tid end