Class: Bkmrq::Bookmark
- Inherits:
-
Object
- Object
- Bkmrq::Bookmark
- Defined in:
- lib/bkmrq/bookmark.rb
Overview
Common Bookmark Format for All Browsers
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#guid ⇒ Object
Returns the value of attribute guid.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Bookmark
constructor
A new instance of Bookmark.
Constructor Details
#initialize(opts) ⇒ Bookmark
Returns a new instance of Bookmark.
8 9 10 11 12 13 14 15 |
# File 'lib/bkmrq/bookmark.rb', line 8 def initialize(opts) @guid = opts[:guid] @name = opts[:name] @path = opts[:path] @url = opts[:url] @created_at = opts[:created_at] @id = opts[:id] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/bkmrq/bookmark.rb', line 6 def created_at @created_at end |
#guid ⇒ Object
Returns the value of attribute guid.
6 7 8 |
# File 'lib/bkmrq/bookmark.rb', line 6 def guid @guid end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/bkmrq/bookmark.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/bkmrq/bookmark.rb', line 6 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/bkmrq/bookmark.rb', line 6 def path @path end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/bkmrq/bookmark.rb', line 6 def url @url end |