Class: ConstantContact::Components::EventFee

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/event_spot/event_fee.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#early_feeObject

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

#feeObject

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_scopeObject

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

#idObject

Returns the value of attribute id



10
11
12
# File 'lib/constantcontact/components/event_spot/event_fee.rb', line 10

def id
  @id
end

#labelObject

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_feeObject

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

Parameters:

  • props (Hash)
    • hash of properties to create object from

Returns:



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