Class: Garlenko::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/garlenko/base.rb

Direct Known Subclasses

Gmail, Live, Yahoo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, password) ⇒ Base

Returns a new instance of Base



19
20
21
22
23
# File 'lib/garlenko/base.rb', line 19

def initialize(username, password)
  @username = username
  @password = password
  @connected = false
end

Instance Attribute Details

#password=(value) ⇒ Object (writeonly)

Sets the attribute password

Parameters:

  • value

    the value to set the attribute password to.



17
18
19
# File 'lib/garlenko/base.rb', line 17

def password=(value)
  @password = value
end

#usernameObject

Returns the value of attribute username



16
17
18
# File 'lib/garlenko/base.rb', line 16

def username
  @username
end

Instance Method Details

#connect!Object

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/garlenko/base.rb', line 25

def connect!
  raise NotImplementedError
end

#connected?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/garlenko/base.rb', line 33

def connected?
  @connected
end

#contactsObject

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/garlenko/base.rb', line 29

def contacts
  raise NotImplementedError
end