Class: MaimaiNet::Constants::NameGroup

Inherits:
Object
  • Object
show all
Includes:
ModuleExt
Defined in:
lib/maimai_net/constants.rb

Constant Summary collapse

LIBRARY =
{
  japanese_a:    0,
  japanese_ka:   1,
  japanese_sa:   2,
  japanese_ta:   3,
  japanese_na:   4,
  japanese_ha:   5,
  japanese_ma:   6,
  japanese_ya:   7,
  japanese_ra:   8,
  japanese_misc: 9,
  latin_a:      10,
  latin_e:      11,
  latin_k:      12,
  latin_p:      13,
  latin_t:      14,
  latin_misc:   15,
}
ORIGINAL =
LIBRARY
DELUXE =
LIBRARY
DELUXE_WEBSITE =
LIBRARY

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ NameGroup

Returns a new instance of NameGroup.



347
348
349
350
351
352
353
354
# File 'lib/maimai_net/constants.rb', line 347

def initialize(key)
  @key = key

  @id            = LIBRARY[key]
  @deluxe_web_id = DELUXE_WEBSITE[key]

  freeze
end

Instance Attribute Details

#deluxe_web_idObject (readonly)

Returns the value of attribute deluxe_web_id.



357
358
359
# File 'lib/maimai_net/constants.rb', line 357

def deluxe_web_id
  @deluxe_web_id
end

#idObject (readonly) Also known as: to_i

Returns the value of attribute id.



357
358
359
# File 'lib/maimai_net/constants.rb', line 357

def id
  @id
end

#keyObject (readonly) Also known as: to_sym

Returns the value of attribute key.



356
357
358
# File 'lib/maimai_net/constants.rb', line 356

def key
  @key
end