Class: MeetupClientRails::Model::Photo
- Inherits:
-
Object
- Object
- MeetupClientRails::Model::Photo
- Defined in:
- lib/meetup_client_rails/models/photo.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#created ⇒ Object
Returns the value of attribute created.
-
#highres_link ⇒ Object
Returns the value of attribute highres_link.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#member ⇒ Object
Returns the value of attribute member.
-
#photo_album ⇒ Object
Returns the value of attribute photo_album.
-
#photo_link ⇒ Object
Returns the value of attribute photo_link.
-
#thumb_link ⇒ Object
Returns the value of attribute thumb_link.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#utc_offset ⇒ Object
Returns the value of attribute utc_offset.
Instance Method Summary collapse
-
#initialize(json_response = {}) ⇒ Photo
constructor
A new instance of Photo.
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_url ⇒ Object
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 |
#created ⇒ Object
Returns the value of attribute created.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo.rb', line 4 def created @created end |
#highres_link ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo.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.rb', line 4 def link @link end |
#member ⇒ Object
Returns the value of attribute member.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo.rb', line 4 def member @member end |
#photo_album ⇒ Object
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 |
#photo_link ⇒ Object
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 |
#thumb_link ⇒ Object
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 |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo.rb', line 4 def type @type end |
#updated ⇒ Object
Returns the value of attribute updated.
4 5 6 |
# File 'lib/meetup_client_rails/models/photo.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/photo.rb', line 4 def utc_offset @utc_offset end |