Class: Sortlocale

Inherits:
Object
  • Object
show all
Defined in:
lib/refworks/properties/sortlocales/sortlocale.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rawlang) ⇒ Sortlocale

Returns a new instance of Sortlocale.



4
5
6
7
# File 'lib/refworks/properties/sortlocales/sortlocale.rb', line 4

def initialize(rawlang)
  @name = rawlang["__content__"]
  @id = rawlang["id"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/refworks/properties/sortlocales/sortlocale.rb', line 2

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/refworks/properties/sortlocales/sortlocale.rb', line 2

def name
  @name
end