Sha256: 02ad1f760331824b68a938bc12e698dd634a87f4bb8fadde6be00b7a2ef17559
Contents?: true
Size: 719 Bytes
Versions: 101
Compression:
Stored size: 719 Bytes
Contents
module FbGraph class AppRequest < Node attr_accessor :application, :created_time, :data, :from, :message, :to def initialize(identifier, attributes = {}) super @data = attributes[:data] @message = attributes[:message] if attributes[:from] @from = User.new(attributes[:from][:id], attributes[:from]) end if attributes[:to] @to = User.new(attributes[:to][:id], attributes[:to]) end if attributes[:application] @application = Application.new(attributes[:application][:id], attributes[:application]) end if attributes[:created_time] @created_time = Time.parse(attributes[:created_time]).utc end end end end
Version data entries
101 entries across 101 versions & 1 rubygems