Sha256: efac46a94335f528cc816f325dfb6907a3a97685ee0a6a6fd5f01d221a6f4bab

Contents?: true

Size: 678 Bytes

Versions: 8

Compression:

Stored size: 678 Bytes

Contents

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

module ConstantContact
  module Components
    class AccountAddress < Component
      attr_accessor :city, :country_code, :line1, :postal_code, :state_code

      # Factory method to create an AccountAddress object from a json string
      # @param [Hash] props - properties to create object from
      # @return [AccountAddress]
      def self.create(props)
        obj = AccountAddress.new
        if props
          props.each do |key, value|
            obj.send("#{key}=", value) if obj.respond_to? key
          end
        end
        obj
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
constantcontact-4.0.0 lib/constantcontact/components/account/account_address.rb
constantcontact-3.0.0 lib/constantcontact/components/account/account_address.rb
constantcontact-2.2.1 lib/constantcontact/components/account/account_address.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/account/account_address.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/account/account_address.rb
constantcontact-2.2.0 lib/constantcontact/components/account/account_address.rb
constantcontact-2.1.0 lib/constantcontact/components/account/account_address.rb
constantcontact-2.0.1 lib/constantcontact/components/account/account_address.rb