Class: MeetupClientRails::Model::PhotoAlbum
- Inherits:
-
Object
- Object
- MeetupClientRails::Model::PhotoAlbum
- Defined in:
- lib/meetup_client_rails/models/photo_album.rb
Instance Attribute Summary collapse
-
#album_photo ⇒ Object
Returns the value of attribute album_photo.
-
#created ⇒ Object
Returns the value of attribute created.
-
#event ⇒ Object
Returns the value of attribute event.
-
#group ⇒ Object
Returns the value of attribute group.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#photo_count ⇒ Object
Returns the value of attribute photo_count.
-
#photo_sample ⇒ Object
Returns the value of attribute photo_sample.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated ⇒ Object
Returns the value of attribute updated.
Instance Method Summary collapse
-
#initialize(json_response = {}) ⇒ PhotoAlbum
constructor
A new instance of PhotoAlbum.
Constructor Details
#initialize(json_response = {}) ⇒ PhotoAlbum
Returns a new instance of PhotoAlbum.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 7 def initialize(json_response = {}) @id = json_response['id'] @title = json_response['title'] @photo_count = json_response['photo_count'] @event = json_response['event'] @photo_sample = json_response['photo_sample'] @link = json_response['link'] @created = json_response['created'] @updated = json_response['updated'] @group = json_response['group'] @album_photo = json_response['album_photo'] end |
Instance Attribute Details
#album_photo ⇒ Object
Returns the value of attribute album_photo.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def album_photo @album_photo end |
#created ⇒ Object
Returns the value of attribute created.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def created @created end |
#event ⇒ Object
Returns the value of attribute event.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def event @event end |
#group ⇒ Object
Returns the value of attribute group.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def group @group end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def id @id end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def link @link end |
#photo_count ⇒ Object
Returns the value of attribute photo_count.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def photo_count @photo_count end |
#photo_sample ⇒ Object
Returns the value of attribute photo_sample.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def photo_sample @photo_sample end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def title @title end |
#updated ⇒ Object
Returns the value of attribute updated.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo_album.rb', line 4 def updated @updated end |