Sha256: 8df7191a4990f4fbc0057898a6a08a388a15f4597461c3d078fd29d58094901b
Contents?: true
Size: 801 Bytes
Versions: 4
Compression:
Stored size: 801 Bytes
Contents
module FbGraph class Video < Node include Connections::Comments include Connections::Likes 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]).utc end if options[:updated_time] @updated_time = Time.parse(options[:updated_time]).utc end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-0.8.0 | lib/fb_graph/video.rb |
fb_graph-0.7.3 | lib/fb_graph/video.rb |
fb_graph-0.7.2 | lib/fb_graph/video.rb |
fb_graph-0.7.1 | lib/fb_graph/video.rb |