Class: Reve::Classes::WalletDivision
Overview
Part of the CorporationSheet. Describes a division in the wallet Attributes
-
key ( Fixnum ) - Account key. Used for things like WalletBalance and such.
-
description ( String ) - Description of the WalletDivision
See Also CorporationSheet
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(elem) ⇒ WalletDivision
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ WalletDivision
:nodoc:
735 736 737 738 |
# File 'lib/reve/classes.rb', line 735 def initialize(elem) #:nodoc: @key = elem['accountKey'].to_i @description = elem['description'].split(/\n/).collect { |s| s.strip }.join(' ') # newlines to spaces end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
734 735 736 |
# File 'lib/reve/classes.rb', line 734 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
734 735 736 |
# File 'lib/reve/classes.rb', line 734 def key @key end |