Class: EME::Billing::Campaign
- Inherits:
-
ObjectHash
- Object
- Hash
- ObjectHash
- EME::Billing::Campaign
- Defined in:
- lib/eme/billing.rb
Instance Method Summary collapse
-
#initialize(key_values) ⇒ Campaign
constructor
A new instance of Campaign.
Methods inherited from ObjectHash
Constructor Details
#initialize(key_values) ⇒ Campaign
Returns a new instance of Campaign.
459 460 461 462 463 464 465 466 467 468 469 |
# File 'lib/eme/billing.rb', line 459 def initialize(key_values) key_values.each do |k,v| self[k.to_sym] = v end if self[:images] local_images = [] self[:images].each {|image| local_images << Image.new(image)} self[:images] = local_images end self[:items] = [] if self[:items] == nil end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class EME::Billing::ObjectHash