Class: Reve::Classes::RefType
Overview
Represents Reve::API#ref_types return. Used in WalletTransaction and WalletJournal, among others to qualify the “type” of the entry Attributes
-
id ( Fixnum ) - CCP’s ID for the RefType
-
name ( String ) - CCP’s name for the RefType
See Also: Reve::API#ref_types, WalletJournal, WalletTransaction
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ RefType
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ RefType
:nodoc:
1092 1093 1094 1095 |
# File 'lib/reve/classes.rb', line 1092 def initialize(elem) #:nodoc: @id = elem['refTypeID'].to_i @name = elem['refTypeName'] end |