Method: MeetupClientRails::Model::Venue#initialize
- Defined in:
- lib/meetup_client_rails/models/venue.rb
#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 |