class FlickrawObjects::Photo

Public Class Methods

find_by_id(id) click to toggle source
# File lib/flickraw_objects.rb, line 97
def self.find_by_id(id)
  Photo.new(flickr.photos.getInfo photo_id: id)
end
url(meaning, letter) click to toggle source
# File lib/flickraw_objects.rb, line 124
def self.url(meaning, letter) 
  define_method("url_#{meaning}") do
    FlickRaw.send("url_#{letter}", init)
  end
end

Public Instance Methods

family() click to toggle source
# File lib/flickraw_objects.rb, line 118
attribute :family, type: Boolean, path: [:isfamily]
farm() click to toggle source
# File lib/flickraw_objects.rb, line 110
attribute :farm
friend() click to toggle source
# File lib/flickraw_objects.rb, line 116
attribute :friend, type: Boolean, path: [:isfriend]
id() click to toggle source
# File lib/flickraw_objects.rb, line 102
attribute :id
owner() click to toggle source
# File lib/flickraw_objects.rb, line 104
attribute :owner
public() click to toggle source
# File lib/flickraw_objects.rb, line 114
attribute :public, type: Boolean, path: [:ispublic]
secret() click to toggle source
# File lib/flickraw_objects.rb, line 106
attribute :secret
server() click to toggle source
# File lib/flickraw_objects.rb, line 108
attribute :server
title() click to toggle source
# File lib/flickraw_objects.rb, line 112
attribute :title
url_medium() click to toggle source
# File lib/flickraw_objects.rb, line 120
def url_medium
  FlickRaw.url(init)
end