Class: Facebooker::Rails::Publisher::ImageHolder
- Inherits:
-
Object
- Object
- Facebooker::Rails::Publisher::ImageHolder
- Defined in:
- lib/facebooker/rails/publisher.rb
Overview
work around the fact that facebook cares about the order of the keys in the hash
Instance Attribute Summary (collapse)
-
- (Object) href
Returns the value of attribute href.
-
- (Object) src
Returns the value of attribute src.
Instance Method Summary (collapse)
- - (Object) ==(other)
-
- (ImageHolder) initialize(src, href)
constructor
A new instance of ImageHolder.
- - (Object) to_json(*args)
Constructor Details
- (ImageHolder) initialize(src, href)
A new instance of ImageHolder
359 360 361 362 |
# File 'lib/facebooker/rails/publisher.rb', line 359 def initialize(src,href) self.src=src self.href=href end |
Instance Attribute Details
- (Object) href
Returns the value of attribute href
358 359 360 |
# File 'lib/facebooker/rails/publisher.rb', line 358 def href @href end |
- (Object) src
Returns the value of attribute src
358 359 360 |
# File 'lib/facebooker/rails/publisher.rb', line 358 def src @src end |
Instance Method Details
- (Object) ==(other)
364 365 366 |
# File 'lib/facebooker/rails/publisher.rb', line 364 def ==(other) self.src == other.src && self.href == other.href end |
- (Object) to_json(*args)
368 369 370 |
# File 'lib/facebooker/rails/publisher.rb', line 368 def to_json(*args) "{\"src\":#{src.to_json}, \"href\":#{href.to_json}}" end |