Class: Cuenote::Api::AddressBook
- Defined in:
- lib/cuenote/api/address_book.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#add ⇒ Object
TODO.
-
#addresses ⇒ Object
TODO.
-
#delete ⇒ Object
TODO.
- #import ⇒ Object
-
#information ⇒ Object
TODO.
-
#initialize(doc = nil) ⇒ AddressBook
constructor
A new instance of AddressBook.
-
#select ⇒ Object
TODO.
-
#update ⇒ Object
TODO.
Methods inherited from Node
Methods inherited from Base
connection, #connection, run, #run
Constructor Details
#initialize(doc = nil) ⇒ AddressBook
Returns a new instance of AddressBook.
5 6 7 8 9 |
# File 'lib/cuenote/api/address_book.rb', line 5 def initialize(doc=nil) super doc @adbook = attributes[:adbook] puts doc.class end |
Class Method Details
.create ⇒ Object
TODO
19 20 |
# File 'lib/cuenote/api/address_book.rb', line 19 def self.create end |
.list ⇒ Object
11 12 13 14 15 16 |
# File 'lib/cuenote/api/address_book.rb', line 11 def self.list res = run 'getAdBookList' res.elements.map do |element| AddressBook.new(element) end end |
Instance Method Details
#add ⇒ Object
TODO
39 40 |
# File 'lib/cuenote/api/address_book.rb', line 39 def add end |
#addresses ⇒ Object
TODO
35 36 |
# File 'lib/cuenote/api/address_book.rb', line 35 def addresses end |
#delete ⇒ Object
TODO
27 28 |
# File 'lib/cuenote/api/address_book.rb', line 27 def delete end |
#import ⇒ Object
46 47 48 |
# File 'lib/cuenote/api/address_book.rb', line 46 def import @import ||= Import.new(adbook: @adbook) end |
#information ⇒ Object
TODO
31 32 |
# File 'lib/cuenote/api/address_book.rb', line 31 def information end |
#select ⇒ Object
TODO
43 44 |
# File 'lib/cuenote/api/address_book.rb', line 43 def select end |
#update ⇒ Object
TODO
23 24 |
# File 'lib/cuenote/api/address_book.rb', line 23 def update end |