Class: ConstantContact::Components::MessageFooter
- Defined in:
- lib/constantcontact/components/email_marketing/message_footer.rb
Instance Attribute Summary collapse
-
#address_line_1 ⇒ Object
Returns the value of attribute address_line_1.
-
#address_line_2 ⇒ Object
Returns the value of attribute address_line_2.
-
#address_line_3 ⇒ Object
Returns the value of attribute address_line_3.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#forward_email_link_text ⇒ Object
Returns the value of attribute forward_email_link_text.
-
#include_forward_email ⇒ Object
Returns the value of attribute include_forward_email.
-
#include_subscribe_link ⇒ Object
Returns the value of attribute include_subscribe_link.
-
#international_state ⇒ Object
Returns the value of attribute international_state.
-
#organization_name ⇒ Object
Returns the value of attribute organization_name.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state ⇒ Object
Returns the value of attribute state.
-
#subscribe_link_text ⇒ Object
Returns the value of attribute subscribe_link_text.
Class Method Summary collapse
-
.create(props) ⇒ MessageFooter
Factory method to create a MessageFooter object from an array.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#address_line_1 ⇒ Object
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_2 ⇒ Object
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_3 ⇒ Object
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 |
#city ⇒ Object
Returns the value of attribute city
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10 def city @city end |
#country ⇒ Object
Returns the value of attribute country
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10 def country @country end |
#forward_email_link_text ⇒ Object
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_email ⇒ Object
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 |
#include_subscribe_link ⇒ Object
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_state ⇒ Object
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_name ⇒ Object
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_code ⇒ Object
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 |
#state ⇒ Object
Returns the value of attribute state
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/message_footer.rb', line 10 def state @state end |
#subscribe_link_text ⇒ Object
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
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 |