Class: Tumblr4r::Link

Inherits:
Post
  • Object
show all
Defined in:
lib/tumblr4r.rb

Instance Attribute Summary collapse

Attributes inherited from Post

#bookmarklet, #date, #date_gmt, #format, #generator, #post_id, #private, #tags, #type, #unix_timestamp, #url, #url_with_slug

Instance Method Summary collapse

Methods inherited from Post

#initialize

Constructor Details

This class inherits a constructor from Tumblr4r::Post

Instance Attribute Details

Returns the value of attribute link_description.



237
238
239
# File 'lib/tumblr4r.rb', line 237

def link_description
  @link_description
end

Returns the value of attribute link_text.



237
238
239
# File 'lib/tumblr4r.rb', line 237

def link_text
  @link_text
end

Returns the value of attribute link_url.



237
238
239
# File 'lib/tumblr4r.rb', line 237

def link_url
  @link_url
end

Instance Method Details

#paramsObject



238
239
240
241
242
243
# File 'lib/tumblr4r.rb', line 238

def params
  super.merge!(
               {"name" => @link_text,
                 "url" => @link_url,
                 "description" => @link_description})
end