Class: ActiveDiigo::Base
- Inherits:
-
Object
- Object
- ActiveDiigo::Base
- Defined in:
- lib/active_diigo/base.rb
Class Attribute Summary collapse
-
.request ⇒ Object
readonly
Returns the value of attribute request.
Instance Attribute Summary collapse
-
#annotations ⇒ Object
Returns the value of attribute annotations.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#readlater ⇒ Object
Returns the value of attribute readlater.
-
#shared ⇒ Object
Returns the value of attribute shared.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options) ⇒ Base
Returns a new instance of Base.
29 30 31 |
# File 'lib/active_diigo/base.rb', line 29 def initialize() build_self() end |
Class Attribute Details
.request ⇒ Object (readonly)
Returns the value of attribute request.
26 27 28 |
# File 'lib/active_diigo/base.rb', line 26 def request @request end |
Instance Attribute Details
#annotations ⇒ Object
Returns the value of attribute annotations.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def annotations @annotations end |
#comments ⇒ Object
Returns the value of attribute comments.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def comments @comments end |
#created_at ⇒ Object
Returns the value of attribute created_at.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def created_at @created_at end |
#desc ⇒ Object
Returns the value of attribute desc.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def desc @desc end |
#readlater ⇒ Object
Returns the value of attribute readlater.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def readlater @readlater end |
#shared ⇒ Object
Returns the value of attribute shared.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def shared @shared end |
#tags ⇒ Object
Returns the value of attribute tags.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def @tags end |
#title ⇒ Object
Returns the value of attribute title.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def url @url end |
#user ⇒ Object
Returns the value of attribute user.
27 28 29 |
# File 'lib/active_diigo/base.rb', line 27 def user @user end |
Class Method Details
.find(user, options = {}) ⇒ Object
33 34 35 36 |
# File 'lib/active_diigo/base.rb', line 33 def self.find(user, = {}) .merge!({:user => user}) ResponseObject.new(connection.bookmarks(), self).parsed_objects end |
.save(title, url, options = {}) ⇒ Object
38 39 40 41 |
# File 'lib/active_diigo/base.rb', line 38 def self.save(title, url, = {}) .merge!({:title => title, :url => url}) connection.save() end |