Class: ConstantContact::Components::EventSpot::EventAddress
- Defined in:
- lib/constantcontact/components/event_spot/event_address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#line1 ⇒ Object
Returns the value of attribute line1.
-
#line2 ⇒ Object
Returns the value of attribute line2.
-
#line3 ⇒ Object
Returns the value of attribute line3.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state ⇒ Object
Returns the value of attribute state.
-
#state_code ⇒ Object
Returns the value of attribute state_code.
Class Method Summary collapse
-
.create(props) ⇒ EventAddress
Factory method to create an EventAddress object from a json string.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city
11 12 13 |
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11 def city @city end |
#country ⇒ Object
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_code ⇒ Object
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 |
#latitude ⇒ Object
Returns the value of attribute latitude
11 12 13 |
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11 def latitude @latitude end |
#line1 ⇒ Object
Returns the value of attribute line1
11 12 13 |
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11 def line1 @line1 end |
#line2 ⇒ Object
Returns the value of attribute line2
11 12 13 |
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11 def line2 @line2 end |
#line3 ⇒ Object
Returns the value of attribute line3
11 12 13 |
# File 'lib/constantcontact/components/event_spot/event_address.rb', line 11 def line3 @line3 end |
#longitude ⇒ Object
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_code ⇒ Object
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 |
#state ⇒ Object
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_code ⇒ Object
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
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 |