Class: Tumblr::Post::Link

Inherits:
Tumblr::Post show all
Defined in:
lib/tumblr/post/link.rb

Constant Summary

Constant Summary

Constants inherited from Tumblr::Post

FIELDS, POST_BODY_SEPARATOR

Class Method Summary (collapse)

Instance Method Summary (collapse)

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_url, #private?, #publish!, #published?, #queue!, #queued?, #reblog_key, #request_parameters, #serialize, #slug, #state, #tags, #tweet, #type

Constructor Details

- (Link) initialize(post_data = {})



4
5
6
7
# File 'lib/tumblr/post/link.rb', line 4

def initialize(post_data = {})
  super(post_data)
  @type = :link
end

Class Method Details

+ (Object) post_body_keys



21
22
23
# File 'lib/tumblr/post/link.rb', line 21

def self.post_body_keys
  [:url, :description]
end

Instance Method Details

- (Object) description



17
18
19
# File 'lib/tumblr/post/link.rb', line 17

def description
  @description
end

- (Object) title



9
10
11
# File 'lib/tumblr/post/link.rb', line 9

def title
  @title
end

- (Object) url



13
14
15
# File 'lib/tumblr/post/link.rb', line 13

def url
  @url
end