Class: Memotoo

Inherits:
Object
  • Object
show all
Defined in:
lib/memotoo.rb,
lib/memotoo/main.rb

Constant Summary collapse

SEARCHDEFAULTS =
{ :limit_start => '0', :limit_nb => '100' }
NEEDS =

requirement for the objects - for validation

{    :contact => [:lastname],
:contact_group => [:name],
:bookmark => [:url],
:bookmark_folder => [:name],
:note => [:description],
:calendar_category => [:name],
:event => [:title, :dateBegin, :dateEnd],
:holiday => [:description, :dateBegin, :dateEnd],
:task => [:title]}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, password, https = true) ⇒ Memotoo

https

default:true for the SOAP service. Use false to use http-connection

example:(use https)

@connect=Memotoo::Connect.new("myusername","mypassword")

example:(use http)

@connect=Memotoo::Connect.new("myusername","mypassword", false)


30
31
32
33
34
35
36
37
38
39
40
# File 'lib/memotoo.rb', line 30

def initialize(username, password, https=true)

  # we will need it for every request - will be merged in
  self.opts= { :param => { :login => username, :password => password}}
  
  # build dynamically all methods - some magic :-)
  make_methods
  
  # creates client with memotoo settings 
  client(https)
end

Instance Attribute Details

#optsObject

will hold username and password in a hash style (used for all requests)



10
11
12
# File 'lib/memotoo.rb', line 10

def opts
  @opts
end