Class: OFX::Data::MessageSets
- Inherits:
-
Object
- Object
- OFX::Data::MessageSets
- Defined in:
- lib/ofx/data/message_sets.rb,
lib/ofx/data/message_sets/signon.rb,
lib/ofx/data/message_sets/banking.rb
Defined Under Namespace
Constant Summary collapse
- ORDER =
[ :signon, :signup, :banking, :credit_card_statements, :investment_statements, :interbank_funds_transfers, :wire_funds_transfers, :payments, :general_email, :investment_security_list, :biller_directory, :bill_delivery, :fi_profile ]
- ORDER_LOOKUP =
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(message_sets) ⇒ MessageSets
constructor
A new instance of MessageSets.
- #ofx_type ⇒ Object
- #ordered_sets ⇒ Object
Constructor Details
#initialize(message_sets) ⇒ MessageSets
Returns a new instance of MessageSets.
16 17 18 |
# File 'lib/ofx/data/message_sets.rb', line 16 def initialize() @message_sets = end |
Instance Method Details
#each(&block) ⇒ Object
28 29 30 |
# File 'lib/ofx/data/message_sets.rb', line 28 def each(&block) ordered_sets.each(&block) end |
#ofx_type ⇒ Object
20 21 22 |
# File 'lib/ofx/data/message_sets.rb', line 20 def ofx_type :message_sets end |
#ordered_sets ⇒ Object
24 25 26 |
# File 'lib/ofx/data/message_sets.rb', line 24 def ordered_sets @message_sets.sort_by { |set| ORDER_LOOKUP[set.] } end |