Sha256: d6cb6250ae75ae13a1387db667a5cd75274b035c0898ccb2bc633ffd5a69fcb3
Contents?: true
Size: 970 Bytes
Versions: 5
Compression:
Stored size: 970 Bytes
Contents
module FbGraph class Photo < Node include Connections::Comments attr_accessor :from, :tags, :name, :picture, :source, :height, :width, :link, :created_time, :updated_time def initialize(identifier, options = {}) super if (from = options[:from]) @from = if from[:category] FbGraph::Page.new(from.delete(:id), from) else FbGraph::User.new(from.delete(:id), from) end end @tags = [] if options[:tags] FbGraph::Collection.new(options[:tags]).each do |tag| @tags << FbGraph::Tag.new(tag.delete(:id), tag) end end @name = options[:name] @picture = options[:picture] @source = options[:source] @height = options[:height] @width = options[:width] @link = options[:link] @created_time = options[:created_time] @updated_time = options[:updated_time] end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-0.0.7 | lib/fb_graph/photo.rb |
fb_graph-0.0.6 | lib/fb_graph/photo.rb |
fb_graph-0.0.5 | lib/fb_graph/photo.rb |
fb_graph-0.0.4 | lib/fb_graph/photo.rb |
fb_graph-0.0.3 | lib/fb_graph/photo.rb |