class ConstantContact::Components::Promocode
Attributes
code_name[RW]
code_type[RW]
discount_amount[RW]
discount_percent[RW]
discount_scope[RW]
discount_type[RW]
fee_ids[RW]
id[RW]
is_paused[RW]
quantity_available[RW]
quantity_total[RW]
quantity_used[RW]
status[RW]
Public Class Methods
create(props)
click to toggle source
Factory method to create an event Promocode
object from a hash @param [Hash] props - properties to create object from @return [Promocode]
# File lib/constantcontact/components/event_spot/promocode.rb, line 16 def self.create(props) obj = Promocode.new props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key end obj end