class ConstantContact::Components::AccountInfo

Attributes

country_code[RW]
email[RW]
first_name[RW]
last_name[RW]
organization_addresses[RW]
organization_name[RW]
phone[RW]
state_code[RW]
time_zone[RW]
website[RW]

Public Class Methods

create(props) click to toggle source

Factory method to create an AccountInfo object from a json string @param [Hash] props - properties to create object from @return [AccountInfo]

# File lib/constantcontact/components/account/account_info.rb, line 21
def self.create(props)
  obj = AccountInfo.new
  if props
    props.each do |key, value|
      key = key.to_s
      if key == 'organization_addresses'
        value = value || []
        obj.organization_addresses = value.collect{|address| Components::AccountAddress.create(address) }
      else
        obj.send("#{key}=", value) if obj.respond_to? key
      end
    end
  end
  obj
end
new() click to toggle source

Class constructor @return [AccountInfo]

# File lib/constantcontact/components/account/account_info.rb, line 15
def initialize
end