class ConstantContact::Components::EventSpot::RegistrantField
Attributes
label[RW]
name[RW]
type[RW]
value[RW]
values[RW]
Public Class Methods
create(props)
click to toggle source
Factory method to create an event Fee object from a hash @param [Hash] props - hash of properties to create object from @return [Campaign]
# File lib/constantcontact/components/event_spot/registrant_field.rb, line 16 def self.create(props) field = RegistrantField.new props.each do |key, value| key = key.to_s field.send("#{key}=", value) if field.respond_to? key end if props field end