class TroveOAuth::Photo
Attributes
album_id[RW]
date[RW]
description[RW]
height[RW]
id[RW]
lat[RW]
license[RW]
lng[RW]
original_web_url[RW]
owner[RW]
photo_public[RW]
service[RW]
title[RW]
urls[RW]
width[RW]
Public Class Methods
new(id, date, original_url)
click to toggle source
# File lib/trove_oauth/photo.rb, line 5 def initialize(id, date, original_url) self.id = id self.date = date self.urls = {:original => original_url} self.tags = [] end
Public Instance Methods
set_location(lat, lng)
click to toggle source
# File lib/trove_oauth/photo.rb, line 12 def set_location(lat, lng) self.lat = lat self.lng = lng end
to_json()
click to toggle source
# File lib/trove_oauth/photo.rb, line 17 def to_json { 'album_id' => album_id, 'date' => date.to_s, 'description' => description, 'height' => height, 'id' => id, 'license' => license, 'loc' => [lat, lng], 'original_web_url' => original_web_url, 'owner' => owner, 'public' => photo_public, 'service' => service, 'tags' => tags, 'title' => title, 'urls' => urls, 'width' => width }.to_json end