Sha256: e170518ea3d9fc17997b9fcbafa180e5d5ae04f704bc489ff58fcede6873b2a2
Contents?: true
Size: 762 Bytes
Versions: 1
Compression:
Stored size: 762 Bytes
Contents
module FbGraph class Video < Node include Connections::Comments attr_accessor :from, :message, :description, :length, :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 @message = options[:message] @description = options[:description] @length = options[:length] 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/video.rb |