Class: MeetupClientRails::Model::PhotoAlbum

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_photoObject

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

#createdObject

Returns the value of attribute created.



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

def created
  @created
end

#eventObject

Returns the value of attribute event.



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

def event
  @event
end

#groupObject

Returns the value of attribute group.



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

def group
  @group
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

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_countObject

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_sampleObject

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

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#updatedObject

Returns the value of attribute updated.



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

def updated
  @updated
end