Class: MeetupClientRails::Model::Event
- Inherits:
-
Object
- Object
- MeetupClientRails::Model::Event
- Defined in:
- lib/meetup_client_rails/models/event.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#description ⇒ Object
Returns the value of attribute description.
-
#group ⇒ Object
Returns the value of attribute group.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#time ⇒ Object
Returns the value of attribute time.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#utc_offset ⇒ Object
Returns the value of attribute utc_offset.
-
#venue ⇒ Object
Returns the value of attribute venue.
-
#visibility ⇒ Object
Returns the value of attribute visibility.
-
#waitlist_count ⇒ Object
Returns the value of attribute waitlist_count.
-
#yes_rsvp_count ⇒ Object
Returns the value of attribute yes_rsvp_count.
Instance Method Summary collapse
-
#initialize(json_response = {}) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(json_response = {}) ⇒ Event
Returns a new instance of Event.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/meetup_client_rails/models/event.rb', line 7 def initialize(json_response = {}) @created = json_response['created'] @id = json_response['id'] @name = json_response['name'] @status = json_response['status'] @time = json_response['time'] @updated = json_response['updated'] @utc_offset = json_response['utc_offset'] @waitlist_count = json_response['waitlist_count'] @yes_rsvp_count = json_response['yes_rsvp_count'] @venue = json_response['venue'] @group = json_response['group'] @link = json_response['link'] @description = json_response['description'] @visibility = json_response['visibility'] end |
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def created @created end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def description @description end |
#group ⇒ Object
Returns the value of attribute group.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def group @group end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def id @id end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def link @link end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def status @status end |
#time ⇒ Object
Returns the value of attribute time.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def time @time end |
#updated ⇒ Object
Returns the value of attribute updated.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def updated @updated end |
#utc_offset ⇒ Object
Returns the value of attribute utc_offset.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def utc_offset @utc_offset end |
#venue ⇒ Object
Returns the value of attribute venue.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def venue @venue end |
#visibility ⇒ Object
Returns the value of attribute visibility.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def visibility @visibility end |
#waitlist_count ⇒ Object
Returns the value of attribute waitlist_count.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def waitlist_count @waitlist_count end |
#yes_rsvp_count ⇒ Object
Returns the value of attribute yes_rsvp_count.
4 5 6 |
# File 'lib/meetup_client_rails/models/event.rb', line 4 def yes_rsvp_count @yes_rsvp_count end |