Class: CoderWally::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/coder_wally/account.rb

Overview

Stores the users accounts

Instance Method Summary collapse

Constructor Details

#initialize(collection_of_accounts) ⇒ Account

Dynamically create account properties



6
7
8
9
10
11
# File 'lib/coder_wally/account.rb', line 6

def initialize(collection_of_accounts)
  collection_of_accounts.each do |, value|
    singleton_class.class_eval { attr_accessor "#{}" }
    instance_variable_set("@#{}", value)
  end
end