Sha256: 443380cd28d894275b7a0fa88e5ae95c4d35654532dc6c1439ef5c806e237fb0
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 Bytes
Contents
module FbGraph class Album < Node include Connections::Photos include Connections::Comments attr_accessor :from, :name, :description, :location, :link, :count, :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 @name = options[:name] @description = options[:description] @location = options[:location] @link = options[:link] @count = options[:count] if options[:created_time] @created_time = Time.parse(options[:created_time]) end if options[:updated_time] @updated_time = Time.parse(options[:updated_time]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-0.0.8 | lib/fb_graph/album.rb |