Class: Bkmrq::Bookmark

Inherits:
Object
  • Object
show all
Defined in:
lib/bkmrq/bookmark.rb

Overview

Common Bookmark Format for All Browsers

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

Returns the value of attribute created_at.



6
7
8
# File 'lib/bkmrq/bookmark.rb', line 6

def created_at
  @created_at
end

#guidObject

Returns the value of attribute guid.



6
7
8
# File 'lib/bkmrq/bookmark.rb', line 6

def guid
  @guid
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/bkmrq/bookmark.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/bkmrq/bookmark.rb', line 6

def name
  @name
end

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/bkmrq/bookmark.rb', line 6

def path
  @path
end

#urlObject

Returns the value of attribute url.



6
7
8
# File 'lib/bkmrq/bookmark.rb', line 6

def url
  @url
end