Sha256: 83118ab8dbb9c9e8f8216c5aa4251a5008b4d75380d51ba7bac0f804cbfe54db

Contents?: true

Size: 399 Bytes

Versions: 20

Compression:

Stored size: 399 Bytes

Contents

module FbGraph
  class Tag
    include Comparison

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

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

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
fb_graph-1.2.4 lib/fb_graph/tag.rb
fb_graph-1.2.3 lib/fb_graph/tag.rb
fb_graph-1.2.2 lib/fb_graph/tag.rb
fb_graph-1.2.1 lib/fb_graph/tag.rb
fb_graph-1.2.0 lib/fb_graph/tag.rb
fb_graph-1.1.7 lib/fb_graph/tag.rb
fb_graph-1.1.6 lib/fb_graph/tag.rb
fb_graph-1.1.5 lib/fb_graph/tag.rb
fb_graph-1.1.4 lib/fb_graph/tag.rb
fb_graph-1.1.3 lib/fb_graph/tag.rb
fb_graph-1.1.2 lib/fb_graph/tag.rb
fb_graph-1.1.1 lib/fb_graph/tag.rb
fb_graph-1.1.0 lib/fb_graph/tag.rb
fb_graph-1.0.7 lib/fb_graph/tag.rb
fb_graph-1.0.6 lib/fb_graph/tag.rb
fb_graph-1.0.5 lib/fb_graph/tag.rb
palidanx-fb_graph-1.0.4 lib/fb_graph/tag.rb
fb_graph-1.0.4 lib/fb_graph/tag.rb
fb_graph-1.0.3 lib/fb_graph/tag.rb
fb_graph-1.0.2 lib/fb_graph/tag.rb