class ConstantContact::Components::EventSpot::SaleItem
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 SaleItem
object from a hash @param [Hash] props - hash of properties to create object from @return [SaleItem]
# File lib/constantcontact/components/event_spot/sale_item.rb, line 16 def self.create(props) obj = SaleItem.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