Sha256: f2e644bc0aa71ae3f0a274f0372a59ded065aecb487a22e4b1ed403724862252

Contents?: true

Size: 917 Bytes

Versions: 1

Compression:

Stored size: 917 Bytes

Contents

#
# message_footer.rb
# ConstantContact
#
# Copyright (c) 2013 Constant Contact. All rights reserved.

module ConstantContact
  module Components
    class MessageFooter < Component
      attr_accessor :city, :state, :country, :organization_name, :address_line_1,
                    :address_line_2, :address_line_3, :international_state,
                    :postal_code, :include_forward_email, :forward_email_link_text,
                    :include_subscribe_link, :subscribe_link_text

      # Factory method to create a MessageFooter object from an array
      # @param [Hash] props - hash of properties to create object from
      # @return [MessageFooter]
      def self.create(props)
        message_footer = MessageFooter.new
        if props
          props.each do |key, value|
            message_footer.send("#{key}=", value)
          end
        end
        message_footer
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
constantcontact-1.0.1 lib/constantcontact/components/email_marketing/message_footer.rb