lib/fb_graph/post.rb in fb_graph-1.2.1 vs lib/fb_graph/post.rb in fb_graph-1.2.2
- old
+ new
@@ -8,22 +8,22 @@
def initialize(identifier, attributes = {})
super
if (from = attributes[:from])
@from = if from[:category]
- FbGraph::Page.new(from.delete(:id), from)
+ Page.new(from.delete(:id), from)
else
- FbGraph::User.new(from.delete(:id), from)
+ User.new(from.delete(:id), from)
end
end
@to = []
if attributes[:to]
- FbGraph::Collection.new(attributes[:to]).each do |to|
+ Collection.new(attributes[:to]).each do |to|
@to << if to[:category]
- FbGraph::Page.new(to.delete(:id), to)
+ Page.new(to.delete(:id), to)
else
- FbGraph::User.new(to.delete(:id), to)
+ User.new(to.delete(:id), to)
end
end
end
@message = attributes[:message]
@picture = attributes[:picture]
@@ -42,9 +42,9 @@
if attributes[:updated_time]
@updated_time = Time.parse(attributes[:updated_time]).utc
end
# cached connection
- @_comments_ = FbGraph::Collection.new(attributes[:comments])
+ @_comments_ = Collection.new(attributes[:comments])
end
end
end
\ No newline at end of file