Class: Rumblr::PhotoPost

Inherits:
Post show all
Defined in:
lib/rumblr/post.rb

Constant Summary

Constants inherited from Post

Rumblr::Post::TYPES

Instance Attribute Summary collapse

Attributes inherited from Post

#date, #date_gmt, #id, #private, #tags, #tumblelog, #type, #unix_timestamp, #url

Instance Method Summary collapse

Methods inherited from Post

#initialize, #private?, #public?

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Rumblr::Post

Instance Attribute Details

#captionObject

Returns the value of attribute caption.



49
50
51
# File 'lib/rumblr/post.rb', line 49

def caption
  @caption
end

#click_through_urlObject

Returns the value of attribute click_through_url.



49
50
51
# File 'lib/rumblr/post.rb', line 49

def click_through_url
  @click_through_url
end

#dataObject

Returns the value of attribute data.



49
50
51
# File 'lib/rumblr/post.rb', line 49

def data
  @data
end

#sourceObject

Returns the value of attribute source.



49
50
51
# File 'lib/rumblr/post.rb', line 49

def source
  @source
end

Instance Method Details

#attribute_hashObject



51
52
53
# File 'lib/rumblr/post.rb', line 51

def attribute_hash
  super.merge(:source => source, :data => data, :caption => caption, :click_through_url => click_through_url)
end