class ConstantContact::Components::EventSpot::EventAddress

Attributes

city[RW]
country[RW]
country_code[RW]
latitude[RW]
line1[RW]
line2[RW]
line3[RW]
longitude[RW]
postal_code[RW]
state[RW]
state_code[RW]

Public Class Methods

create(props) click to toggle source

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

# File lib/constantcontact/components/event_spot/event_address.rb, line 17
def self.create(props)
  obj = EventAddress.new
  if props
    props.each do |key, value|
      obj.send("#{key}=", value) if obj.respond_to? key
    end
  end
  obj
end