Class: Tumblr::Post::Quote
- Inherits:
-
Tumblr::Post
- Object
- Tumblr::Post
- Tumblr::Post::Quote
- Defined in:
- lib/tumblr/post/quote.rb
Constant Summary
Constants inherited from Tumblr::Post
Instance Attribute Summary
Attributes inherited from Tumblr::Post
#date, #format, #generator, #group, #post_id, #reblog_key, #slug, #state, #type
Instance Method Summary collapse
-
#initialize(quotation, post_id = nil) ⇒ Quote
constructor
A new instance of Quote.
Methods inherited from Tumblr::Post
#add_to_queue, #delete, #edit, #like, parameters, #private=, #private?, #publish_now, #publish_on, #save_as_draft, #send_to_twitter, #tags, #to_h, #to_s, #to_yaml, #unlike, #write
Constructor Details
#initialize(quotation, post_id = nil) ⇒ Quote
Returns a new instance of Quote.
5 6 7 8 9 |
# File 'lib/tumblr/post/quote.rb', line 5 def initialize(quotation, post_id = nil) super post_id self.quote = quotation @type = :quote end |