Class: ConstantContact::Components::EventSpot::RegistrantField
- Inherits:
-
Component
- Object
- Component
- ConstantContact::Components::EventSpot::RegistrantField
- Defined in:
- lib/constantcontact/components/event_spot/registrant_field.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
-
#values ⇒ Object
Returns the value of attribute values.
Class Method Summary collapse
-
.create(props) ⇒ Campaign
Factory method to create an event Fee object from a hash.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
11 12 13 |
# File 'lib/constantcontact/components/event_spot/registrant_field.rb', line 11 def label @label end |
#name ⇒ Object
Returns the value of attribute name
11 12 13 |
# File 'lib/constantcontact/components/event_spot/registrant_field.rb', line 11 def name @name end |
#type ⇒ Object
Returns the value of attribute type
11 12 13 |
# File 'lib/constantcontact/components/event_spot/registrant_field.rb', line 11 def type @type end |
#value ⇒ Object
Returns the value of attribute value
11 12 13 |
# File 'lib/constantcontact/components/event_spot/registrant_field.rb', line 11 def value @value end |
#values ⇒ Object
Returns the value of attribute values
11 12 13 |
# File 'lib/constantcontact/components/event_spot/registrant_field.rb', line 11 def values @values end |
Class Method Details
.create(props) ⇒ Campaign
Factory method to create an event Fee object from a hash
16 17 18 19 20 21 22 23 |
# 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 |