Sha256: 80abc7c4357a377858bfc107c5cacd4d62c428af6371b76cea4648cd8bfc795d
Contents?: true
Size: 770 Bytes
Versions: 14
Compression:
Stored size: 770 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]).utc end if options[:updated_time] @updated_time = Time.parse(options[:updated_time]).utc end end end end
Version data entries
14 entries across 14 versions & 1 rubygems