class ConstantContact::Components::EventSpot::RegistrantPromoCodeInfo

Attributes

code_name[RW]
code_type[RW]
discount_amount[RW]
discount_scope[RW]
discount_type[RW]
redemption_count[RW]

Public Class Methods

create(props) click to toggle source

Factory method to create a RegistrantPromoCode object from a hash @param [Hash] props - hash of properties to create object from @return [RegistrantPromoCodeInfo]

# File lib/constantcontact/components/event_spot/registrant_promo_code_info.rb, line 16
def self.create(props)
  obj = RegistrantPromoCodeInfo.new
  props.each do |key, value|
    key = key.to_s
    obj.send("#{key}=", value) if obj.respond_to? key
  end if props
  obj
end