Class: Tumblr::Post::Text
- Inherits:
-
Tumblr::Post
- Object
- Tumblr::Post
- Tumblr::Post::Text
- Defined in:
- lib/tumblr/post/text.rb
Constant Summary
Constants inherited from Tumblr::Post
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(post_data = {}) ⇒ Text
constructor
A new instance of Text.
- #title ⇒ Object
Methods inherited from Tumblr::Post
create, #date, #delete, #draft!, #draft?, dump, #edit, #format, get_post_type, #id, infer_post_type_from_extname, infer_post_type_from_string, load, load_from_binary, load_from_path, #markdown?, #meta_data, pair_post_body_types, parse, perform, #post, post_body_keys, #post_url, #private?, #publish!, #published?, #queue!, #queued?, #reblog_key, #request_parameters, #serialize, #slug, #state, #tags, #tweet, #type
Constructor Details
#initialize(post_data = {}) ⇒ Text
Returns a new instance of Text.
4 5 6 7 |
# File 'lib/tumblr/post/text.rb', line 4 def initialize(post_data = {}) super(post_data) @type = :text end |
Instance Method Details
#body ⇒ Object
9 10 11 |
# File 'lib/tumblr/post/text.rb', line 9 def body @body end |
#title ⇒ Object
13 14 15 |
# File 'lib/tumblr/post/text.rb', line 13 def title @title end |