Class: Language
- Inherits:
-
Object
- Object
- Language
- Defined in:
- lib/refworks/properties/languages/language.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(rawlang) ⇒ Language
constructor
A new instance of Language.
Constructor Details
#initialize(rawlang) ⇒ Language
Returns a new instance of Language.
4 5 6 7 |
# File 'lib/refworks/properties/languages/language.rb', line 4 def initialize(rawlang) @name = rawlang["name"] @code = rawlang["code"] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
2 3 4 |
# File 'lib/refworks/properties/languages/language.rb', line 2 def code @code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/refworks/properties/languages/language.rb', line 2 def name @name end |