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