Class: Puavo::Client::Base
- Inherits:
-
Object
- Object
- Puavo::Client::Base
- Defined in:
- lib/puavo/client/base.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#ssl ⇒ Object
Returns the value of attribute ssl.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
- #devices ⇒ Object
- #groups ⇒ Object
-
#initialize(subdomain, username, password, ssl = true) ⇒ Base
constructor
A new instance of Base.
- #organisation ⇒ Object
- #schools ⇒ Object
- #users ⇒ Object
Constructor Details
#initialize(subdomain, username, password, ssl = true) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/puavo/client/base.rb', line 6 def initialize(subdomain, username, password, ssl = true) @subdomain, @username, @password, @ssl = subdomain, username, password, ssl end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
4 5 6 |
# File 'lib/puavo/client/base.rb', line 4 def password @password end |
#ssl ⇒ Object
Returns the value of attribute ssl.
4 5 6 |
# File 'lib/puavo/client/base.rb', line 4 def ssl @ssl end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
4 5 6 |
# File 'lib/puavo/client/base.rb', line 4 def subdomain @subdomain end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/puavo/client/base.rb', line 4 def username @username end |
Instance Method Details
#devices ⇒ Object
22 23 24 |
# File 'lib/puavo/client/base.rb', line 22 def devices Puavo::Client::API::Devices.new(subdomain, username, password, ssl) end |
#groups ⇒ Object
18 19 20 |
# File 'lib/puavo/client/base.rb', line 18 def groups Puavo::Client::API::Groups.new(subdomain, username, password, ssl) end |
#organisation ⇒ Object
10 11 12 |
# File 'lib/puavo/client/base.rb', line 10 def organisation Puavo::Client::API::Organisation.new(subdomain, username, password, ssl) end |