Method: VoucherifySdk::PromotionStackBase#initialize
- Defined in:
- lib/VoucherifySdk/models/promotion_stack_base.rb
#initialize(attributes = {}) ⇒ PromotionStackBase
Initializes the object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/VoucherifySdk/models/promotion_stack_base.rb', line 54 def initialize(attributes = {}) # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'tiers') self.tiers = attributes[:'tiers'] end end |