Sha256: 133206adabe3a6989c5979550a48f2bdfe6bb4d4bf7b2b15d9e15cf1a79b29a8

Contents?: true

Size: 393 Bytes

Versions: 18

Compression:

Stored size: 393 Bytes

Contents

module FbGraph
  class Tag
    include FbGraph::Comparison

    attr_accessor :user, :x, :y, :created_time

    def initialize(identifier, options = {})
      @x = options.delete(:x)
      @y = options.delete(:y)
      if (created_time = options.delete(:created_time))
        @created_time = Time.parse(created_time).utc
      end
      @user = User.new(identifier, options)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fb_graph-0.8.0 lib/fb_graph/tag.rb
fb_graph-0.7.3 lib/fb_graph/tag.rb
fb_graph-0.7.2 lib/fb_graph/tag.rb
fb_graph-0.7.1 lib/fb_graph/tag.rb
fb_graph-0.7.0 lib/fb_graph/tag.rb
fb_graph-0.6.0 lib/fb_graph/tag.rb
fb_graph-0.5.0 lib/fb_graph/tag.rb
fb_graph-0.4.2 lib/fb_graph/tag.rb
fb_graph-0.4.1 lib/fb_graph/tag.rb
fb_graph-0.4.0 lib/fb_graph/tag.rb
fb_graph-0.3.0 lib/fb_graph/tag.rb
fb_graph-0.2.2 lib/fb_graph/tag.rb
fb_graph-0.2.1 lib/fb_graph/tag.rb
fb_graph-0.2.0 lib/fb_graph/tag.rb
fb_graph-0.1.3 lib/fb_graph/tag.rb
fb_graph-0.1.2 lib/fb_graph/tag.rb
fb_graph-0.1.1 lib/fb_graph/tag.rb
fb_graph-0.1.0 lib/fb_graph/tag.rb