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:
759 760 761 762 |
# File 'lib/reve/classes.rb', line 759 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.
758 759 760 |
# File 'lib/reve/classes.rb', line 758 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
758 759 760 |
# File 'lib/reve/classes.rb', line 758 def key @key end |