Class: Nelumba::Bookmark
- Inherits:
-
Object
- Object
- Nelumba::Bookmark
- Includes:
- Object
- Defined in:
- lib/nelumba/bookmark.rb
Constant Summary
Constants included from Object
Object::USERNAME_REGULAR_EXPRESSION
Instance Attribute Summary collapse
-
#target_url ⇒ Object
readonly
Returns the value of attribute target_url.
Attributes included from Object
#author, #content, #display_name, #html, #image, #published, #summary, #text, #title, #uid, #updated, #url
Instance Method Summary collapse
- #init(options = {}, &blk) ⇒ Object
-
#initialize(options = {}, &blk) ⇒ Bookmark
constructor
A new instance of Bookmark.
- #to_hash ⇒ Object
- #to_json_hash ⇒ Object
Methods included from Object
#mentions, #reply_to, #to_as1, #to_html, #to_json, #to_text
Constructor Details
#initialize(options = {}, &blk) ⇒ Bookmark
Returns a new instance of Bookmark.
7 8 9 |
# File 'lib/nelumba/bookmark.rb', line 7 def initialize( = {}, &blk) init(, &blk) end |
Instance Attribute Details
#target_url ⇒ Object (readonly)
Returns the value of attribute target_url.
5 6 7 |
# File 'lib/nelumba/bookmark.rb', line 5 def target_url @target_url end |
Instance Method Details
#init(options = {}, &blk) ⇒ Object
11 12 13 14 15 |
# File 'lib/nelumba/bookmark.rb', line 11 def init( = {}, &blk) super(, &blk) @target_url = [:target_url] end |
#to_hash ⇒ Object
17 18 19 20 21 |
# File 'lib/nelumba/bookmark.rb', line 17 def to_hash { :target_url => @target_url }.merge(super) end |
#to_json_hash ⇒ Object
23 24 25 26 27 28 |
# File 'lib/nelumba/bookmark.rb', line 23 def to_json_hash { :objectType => "bookmark", :targetUrl => @target_url }.merge(super) end |