Class: Reve::Classes::RefType

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

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

Instance Method Summary collapse

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



1091
1092
1093
# File 'lib/reve/classes.rb', line 1091

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



1091
1092
1093
# File 'lib/reve/classes.rb', line 1091

def name
  @name
end