Class: MeetupClientRails::Model::Venue

Inherits:
Object
  • Object
show all
Defined in:
lib/meetup_client_rails/models/venue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_response = {}) ⇒ Venue

Returns a new instance of Venue.

[View source]

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

#address_1Object

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

#address_2Object

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

#cityObject

Returns the value of attribute city.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def city
  @city
end

#countryObject

Returns the value of attribute country.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def country
  @country
end

#idObject

Returns the value of attribute id.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def id
  @id
end

#latObject

Returns the value of attribute lat.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def lat
  @lat
end

#localized_country_nameObject

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

#lonObject

Returns the value of attribute lon.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def lon
  @lon
end

#nameObject

Returns the value of attribute name.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def name
  @name
end

#phoneObject

Returns the value of attribute phone.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def phone
  @phone
end

#stateObject

Returns the value of attribute state.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def state
  @state
end

#timeObject

Returns the value of attribute time.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def time
  @time
end

#visibilityObject

Returns the value of attribute visibility.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def visibility
  @visibility
end

#zipObject

Returns the value of attribute zip.


4
5
6
# File 'lib/meetup_client_rails/models/venue.rb', line 4

def zip
  @zip
end