Sha256: 4d0671131eaa65e425d1d2f51754217a7ff922ef882d16b08e30cd1898ee7199
Contents?: true
Size: 915 Bytes
Versions: 17
Compression:
Stored size: 915 Bytes
Contents
module FbGraph class Link < Node include Connections::Comments attr_accessor :from, :link, :name, :caption, :description, :icon, :picture, :message, :created_time def initialize(identifier, attributes = {}) super if (from = attributes[:from]) @from = if from[:category] FbGraph::Page.new(from.delete(:id), from) else FbGraph::User.new(from.delete(:id), from) end end @name = attributes[:name] @link = attributes[:link] @caption = attributes[:caption] @description = attributes[:description] @icon = attributes[:icon] @picture = attributes[:picture] # NOTE: this is external image, so isn't connection. @message = attributes[:message] if attributes[:created_time] @created_time = Time.parse(attributes[:created_time]).utc end end end end
Version data entries
17 entries across 17 versions & 2 rubygems