Class Facebooker::Rails::Publisher::ImageHolder
In: lib/facebooker/rails/publisher.rb
Parent: Object

work around the fact that facebook cares about the order of the keys in the hash

Methods

==   new   to_json  

Attributes

href  [RW] 
src  [RW] 

Public Class methods

[Source]

# File lib/facebooker/rails/publisher.rb, line 359
        def initialize(src,href)
          self.src=src
          self.href=href
        end

Public Instance methods

[Source]

# File lib/facebooker/rails/publisher.rb, line 364
        def ==(other)
          self.src == other.src && self.href == other.href
        end

[Source]

# File lib/facebooker/rails/publisher.rb, line 368
        def to_json(*args)
          "{\"src\":#{src.to_json}, \"href\":#{href.to_json}}"
        end

[Validate]