class ConstantContact::Components::EventSpot::RegistrantFee

Attributes

amount[RW]
fee_period_type[RW]
id[RW]
name[RW]
promo_type[RW]
quantity[RW]
type[RW]

Public Class Methods

create(props) click to toggle source

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

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