Class: ConstantContact::Components::EventSpot::EventAddress

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/event_spot/event_address.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#cityObject

Returns the value of attribute city



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def city
  @city
end

#countryObject

Returns the value of attribute country



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def country
  @country
end

#country_codeObject

Returns the value of attribute country_code



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def country_code
  @country_code
end

#latitudeObject

Returns the value of attribute latitude



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def latitude
  @latitude
end

#line1Object

Returns the value of attribute line1



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def line1
  @line1
end

#line2Object

Returns the value of attribute line2



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def line2
  @line2
end

#line3Object

Returns the value of attribute line3



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def line3
  @line3
end

#longitudeObject

Returns the value of attribute longitude



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def longitude
  @longitude
end

#postal_codeObject

Returns the value of attribute postal_code



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def postal_code
  @postal_code
end

#stateObject

Returns the value of attribute state



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def state
  @state
end

#state_codeObject

Returns the value of attribute state_code



11
12
13
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11

def state_code
  @state_code
end

Class Method Details

.create(props) ⇒ EventAddress

Factory method to create an EventAddress object from a json string

Parameters:

  • props (Hash)
    • properties to create object from

Returns:



17
18
19
20
21
22
23
24
25
# 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