Class: Garlenko::Base
- Inherits:
-
Object
- Object
- Garlenko::Base
- Defined in:
- lib/garlenko/base.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
writeonly
Sets the attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
- #connect! ⇒ Object
- #connected? ⇒ Boolean
- #contacts ⇒ Object
-
#initialize(username, password) ⇒ Base
constructor
A new instance of Base.
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
17 18 19 |
# File 'lib/garlenko/base.rb', line 17 def password=(value) @password = value end |
#username ⇒ Object
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
25 26 27 |
# File 'lib/garlenko/base.rb', line 25 def connect! raise NotImplementedError end |
#connected? ⇒ Boolean
33 34 35 |
# File 'lib/garlenko/base.rb', line 33 def connected? @connected end |
#contacts ⇒ Object
29 30 31 |
# File 'lib/garlenko/base.rb', line 29 def contacts raise NotImplementedError end |