Class: Cuenote::Api::AddressBook

Inherits:
Node
  • Object
show all
Defined in:
lib/cuenote/api/address_book.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#attributes, #elements

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

.createObject

TODO



19
20
# File 'lib/cuenote/api/address_book.rb', line 19

def self.create
end

.listObject



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

#addObject

TODO



39
40
# File 'lib/cuenote/api/address_book.rb', line 39

def add
end

#addressesObject

TODO



35
36
# File 'lib/cuenote/api/address_book.rb', line 35

def addresses
end

#deleteObject

TODO



27
28
# File 'lib/cuenote/api/address_book.rb', line 27

def delete
end

#importObject



46
47
48
# File 'lib/cuenote/api/address_book.rb', line 46

def import
  @import ||= Import.new(adbook: @adbook)
end

#informationObject

TODO



31
32
# File 'lib/cuenote/api/address_book.rb', line 31

def information
end

#selectObject

TODO



43
44
# File 'lib/cuenote/api/address_book.rb', line 43

def select
end

#updateObject

TODO



23
24
# File 'lib/cuenote/api/address_book.rb', line 23

def update
end