Sha256: 497b6ba7889e9334928509b2f60636c08744e0c884a8d74955c2e1928bad7776
Contents?: true
Size: 624 Bytes
Versions: 66
Compression:
Stored size: 624 Bytes
Contents
module FbGraph class QuestionOption < Node include Connections::Votes attr_accessor :from, :name, :vote_count, :object, :created_time def initialize(identifier, attributes = {}) super @from = if attributes[:from] User.new(attributes[:from][:id], attributes[:from]) end @name = attributes[:name] @vote_count = attributes[:votes] @object = if attributes[:object] Page.new(attributes[:object][:id], attributes[:object]) end @created_time = if attributes[:created_time] Time.parse(attributes[:created_time]).utc end end end end
Version data entries
66 entries across 66 versions & 1 rubygems