Sha256: f808d79218757fb79041e7c31aa76dce291214afc8793fab5d53e4d836d8860f
Contents?: true
Size: 716 Bytes
Versions: 8
Compression:
Stored size: 716 Bytes
Contents
# # address.rb # ConstantContact # # Copyright (c) 2013 Constant Contact. All rights reserved. module ConstantContact module Components class Address < Component attr_accessor :id, :line1, :line2, :line3, :city, :address_type, :state_code, :country_code, :postal_code, :sub_postal_code # Factory method to create an Address object from a json string # @param [Hash] props - properties to create object from # @return [Address] def self.create(props) obj = Address.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 & 1 rubygems