Class: MeetupClientRails::Model::Photo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_response = {}) ⇒ Photo

Returns a new instance of Photo.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/meetup_client_rails/models/photo.rb', line 7

def initialize(json_response = {})
  @id = json_response['id']
  @highres_link= json_response['highres_link']
  @photo_link = json_response['photo_link']
  @thumb_link = json_response['thumb_link']
  @type = json_response['type']
  @base_url = json_response['base_url']
  @link = json_response['link']
  @created = json_response['created']
  @updated = json_response['updated']
  @utc_offset = json_response['utc_offset']
  @member = json_response['member']
  @photo_album = json_response['photo_album']
end

Instance Attribute Details

#base_urlObject

Returns the value of attribute base_url.



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

def base_url
  @base_url
end

#createdObject

Returns the value of attribute created.



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

def created
  @created
end

Returns the value of attribute highres_link.



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

def highres_link
  @highres_link
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

Returns the value of attribute link.



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

def link
  @link
end

#memberObject

Returns the value of attribute member.



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

def member
  @member
end

#photo_albumObject

Returns the value of attribute photo_album.



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

def photo_album
  @photo_album
end

Returns the value of attribute photo_link.



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

def photo_link
  @photo_link
end

Returns the value of attribute thumb_link.



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

def thumb_link
  @thumb_link
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

#updatedObject

Returns the value of attribute updated.



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

def updated
  @updated
end

#utc_offsetObject

Returns the value of attribute utc_offset.



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

def utc_offset
  @utc_offset
end