Class: MeetupClientRails::Model::Group
- Inherits:
-
Object
- Object
- MeetupClientRails::Model::Group
- Defined in:
- lib/meetup_client_rails/models/group.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#created ⇒ Object
Returns the value of attribute created.
-
#description ⇒ Object
Returns the value of attribute description.
-
#group_photo ⇒ Object
Returns the value of attribute group_photo.
-
#id ⇒ Object
Returns the value of attribute id.
-
#join_mode ⇒ Object
Returns the value of attribute join_mode.
-
#key_photo ⇒ Object
Returns the value of attribute key_photo.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#link ⇒ Object
Returns the value of attribute link.
-
#localized_country_name ⇒ Object
Returns the value of attribute localized_country_name.
-
#lon ⇒ Object
Returns the value of attribute lon.
-
#members ⇒ Object
Returns the value of attribute members.
-
#name ⇒ Object
Returns the value of attribute name.
-
#next_event ⇒ Object
Returns the value of attribute next_event.
-
#organizer ⇒ Object
Returns the value of attribute organizer.
-
#photos ⇒ Object
Returns the value of attribute photos.
-
#state ⇒ Object
Returns the value of attribute state.
-
#time ⇒ Object
Returns the value of attribute time.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
-
#urlname ⇒ Object
Returns the value of attribute urlname.
-
#who ⇒ Object
Returns the value of attribute who.
Instance Method Summary collapse
-
#initialize(json_response) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(json_response) ⇒ Group
Returns a new instance of Group.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/meetup_client_rails/models/group.rb', line 9 def initialize(json_response) @id = json_response['id'] @name = json_response['name'] @link = json_response['link'] @time = json_response['time'] @urlname = json_response['urlname'] @description = json_response['description'] @created = json_response['created'] @city = json_response['city'] @country = json_response['country'] @localized_country_name = json_response['localized_country_name'] @state = json_response['state'] @join_mode = json_response['join_mode'] @visibility = json_response['visibility'] @lat = json_response['lat'] @lon = json_response['lon'] @members = json_response['members'] @organizer = json_response['organizer'] @who = json_response['who'] @timezone = json_response['timezone'] @next_event = json_response['next_event'] @category = json_response['category'] @group_photo = json_response['group_photo'] @key_photo = json_response['key_photo'] @photos = json_response['photos'] end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def category @category end |
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def country @country end |
#created ⇒ Object
Returns the value of attribute created.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def created @created end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def description @description end |
#group_photo ⇒ Object
Returns the value of attribute group_photo.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def group_photo @group_photo end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def id @id end |
#join_mode ⇒ Object
Returns the value of attribute join_mode.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def join_mode @join_mode end |
#key_photo ⇒ Object
Returns the value of attribute key_photo.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def key_photo @key_photo end |
#lat ⇒ Object
Returns the value of attribute lat.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def lat @lat end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def link @link end |
#localized_country_name ⇒ Object
Returns the value of attribute localized_country_name.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def localized_country_name @localized_country_name end |
#lon ⇒ Object
Returns the value of attribute lon.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def lon @lon end |
#members ⇒ Object
Returns the value of attribute members.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def members @members end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def name @name end |
#next_event ⇒ Object
Returns the value of attribute next_event.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def next_event @next_event end |
#organizer ⇒ Object
Returns the value of attribute organizer.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def organizer @organizer end |
#photos ⇒ Object
Returns the value of attribute photos.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def photos @photos end |
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def state @state end |
#time ⇒ Object
Returns the value of attribute time.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def time @time end |
#timezone ⇒ Object
Returns the value of attribute timezone.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def timezone @timezone end |
#urlname ⇒ Object
Returns the value of attribute urlname.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def urlname @urlname end |
#who ⇒ Object
Returns the value of attribute who.
4 5 6 |
# File 'lib/meetup_client_rails/models/group.rb', line 4 def who @who end |