Class: ConstantContact::Components::EventFee
- Defined in:
- lib/constantcontact/components/event_spot/event_fee.rb
Instance Attribute Summary collapse
- 
  
    
      #early_fee  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute early_fee. 
- 
  
    
      #fee  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute fee. 
- 
  
    
      #fee_scope  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute fee_scope. 
- 
  
    
      #id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute id. 
- 
  
    
      #label  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute label. 
- 
  
    
      #late_fee  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute late_fee. 
Class Method Summary collapse
- 
  
    
      .create(props)  ⇒ EventFee 
    
    
  
  
  
  
  
  
  
  
  
    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
#early_fee ⇒ Object
Returns the value of attribute early_fee
| 10 11 12 | # File 'lib/constantcontact/components/event_spot/event_fee.rb', line 10 def early_fee @early_fee end | 
#fee ⇒ Object
Returns the value of attribute fee
| 10 11 12 | # File 'lib/constantcontact/components/event_spot/event_fee.rb', line 10 def fee @fee end | 
#fee_scope ⇒ Object
Returns the value of attribute fee_scope
| 10 11 12 | # File 'lib/constantcontact/components/event_spot/event_fee.rb', line 10 def fee_scope @fee_scope end | 
#id ⇒ Object
Returns the value of attribute id
| 10 11 12 | # File 'lib/constantcontact/components/event_spot/event_fee.rb', line 10 def id @id end | 
#label ⇒ Object
Returns the value of attribute label
| 10 11 12 | # File 'lib/constantcontact/components/event_spot/event_fee.rb', line 10 def label @label end | 
#late_fee ⇒ Object
Returns the value of attribute late_fee
| 10 11 12 | # File 'lib/constantcontact/components/event_spot/event_fee.rb', line 10 def late_fee @late_fee end | 
Class Method Details
.create(props) ⇒ EventFee
Factory method to create an event Fee object from a hash
| 15 16 17 18 19 20 21 22 23 24 | # File 'lib/constantcontact/components/event_spot/event_fee.rb', line 15 def self.create(props) obj = EventFee.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 |