Class: Powershop::Property
- Inherits:
-
Object
- Object
- Powershop::Property
- Defined in:
- lib/powershop/property.rb
Constant Summary collapse
- ATTRIBUTES =
%w(icp_number address start_date end_date unit_balance daily_consumption last_account_review_at registers)
Instance Method Summary collapse
-
#initialize(client, hash) ⇒ Property
constructor
A new instance of Property.
-
#registers=(register_array) ⇒ Object
Could override this in case a Hash doesn’t suit for an address ;) def address=(address_hash) end.
Constructor Details
#initialize(client, hash) ⇒ Property
Returns a new instance of Property.
9 10 11 12 13 14 15 |
# File 'lib/powershop/property.rb', line 9 def initialize(client, hash) @client = client ATTRIBUTES.each do |r| send("#{r}=", hash[r]) end end |