Class: MeetupClientRails::Model::Venue
- Inherits:
-
Object
- Object
- MeetupClientRails::Model::Venue
- Defined in:
- lib/meetup_client_rails/models/venue.rb
Instance Attribute Summary collapse
-
#address_1 ⇒ Object
Returns the value of attribute address_1.
-
#address_2 ⇒ Object
Returns the value of attribute address_2.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#id ⇒ Object
Returns the value of attribute id.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#localized_country_name ⇒ Object
Returns the value of attribute localized_country_name.
-
#lon ⇒ Object
Returns the value of attribute lon.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#state ⇒ Object
Returns the value of attribute state.
-
#time ⇒ Object
Returns the value of attribute time.
-
#visibility ⇒ Object
Returns the value of attribute visibility.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(json_response = {}) ⇒ Venue
constructor
A new instance of Venue.
Constructor Details
permalink #initialize(json_response = {}) ⇒ Venue
Returns a new instance of Venue.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/meetup_client_rails/models/venue.rb', line 7 def initialize(json_response = {}) @id = json_response['id'] @visibility = json_response['visibility'] @zip = json_response['zip'] @state = json_response['state'] @phone = json_response['phone'] @name = json_response['name'] @lon = json_response['lon'] @lat = json_response['lat'] @time = json_response['time'] @localized_country_name = json_response['localized_country_name'] @country = json_response['country'] @city = json_response['city'] @address_1 = json_response['address_1'] @address_2 = json_response['address_2'] @address_3 = json_response['address_3'] end |
Instance Attribute Details
permalink #address_1 ⇒ Object
Returns the value of attribute address_1.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def address_1 @address_1 end |
permalink #address_2 ⇒ Object
Returns the value of attribute address_2.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def address_2 @address_2 end |
permalink #city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def city @city end |
permalink #country ⇒ Object
Returns the value of attribute country.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def country @country end |
permalink #id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def id @id end |
permalink #lat ⇒ Object
Returns the value of attribute lat.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def lat @lat end |
permalink #localized_country_name ⇒ Object
Returns the value of attribute localized_country_name.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def localized_country_name @localized_country_name end |
permalink #lon ⇒ Object
Returns the value of attribute lon.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def lon @lon end |
permalink #name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def name @name end |
permalink #phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def phone @phone end |
permalink #state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def state @state end |
permalink #time ⇒ Object
Returns the value of attribute time.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def time @time end |
permalink #visibility ⇒ Object
Returns the value of attribute visibility.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def visibility @visibility end |
permalink #zip ⇒ Object
Returns the value of attribute zip.
4 5 6 |
# File 'lib/meetup_client_rails/models/venue.rb', line 4 def zip @zip end |