Class: ConstantContact::Components::MessageFooter

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/email_marketing/message_footer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#address_line_1Object

Returns the value of attribute address_line_1



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def address_line_1
  @address_line_1
end

#address_line_2Object

Returns the value of attribute address_line_2



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def address_line_2
  @address_line_2
end

#address_line_3Object

Returns the value of attribute address_line_3



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def address_line_3
  @address_line_3
end

#cityObject

Returns the value of attribute city



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def city
  @city
end

#countryObject

Returns the value of attribute country



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def country
  @country
end

Returns the value of attribute forward_email_link_text



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def forward_email_link_text
  @forward_email_link_text
end

#include_forward_emailObject

Returns the value of attribute include_forward_email



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def include_forward_email
  @include_forward_email
end

Returns the value of attribute include_subscribe_link



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def include_subscribe_link
  @include_subscribe_link
end

#international_stateObject

Returns the value of attribute international_state



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def international_state
  @international_state
end

#organization_nameObject

Returns the value of attribute organization_name



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def organization_name
  @organization_name
end

#postal_codeObject

Returns the value of attribute postal_code



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def postal_code
  @postal_code
end

#stateObject

Returns the value of attribute state



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def state
  @state
end

Returns the value of attribute subscribe_link_text



10
11
12
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10

def subscribe_link_text
  @subscribe_link_text
end

Class Method Details

.create(props) ⇒ MessageFooter

Factory method to create a MessageFooter object from an array

Parameters:

  • props (Hash)
    • properties to create object from

Returns:



18
19
20
21
22
23
24
25
26
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 18

def self.create(props)
  obj = MessageFooter.new
  if props
    props.each do |key, value|
      obj.send("#{key}=", value) if obj.respond_to? key
    end
  end
  obj
end