Class: WeBee::Api
- Inherits:
-
Object
- Object
- WeBee::Api
- Defined in:
- lib/webee.rb
Class Attribute Summary collapse
-
.host ⇒ Object
Returns the value of attribute host.
-
.password ⇒ Object
Returns the value of attribute password.
-
.port ⇒ Object
Returns the value of attribute port.
-
.url ⇒ Object
Returns the value of attribute url.
-
.user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
Class Attribute Details
.host ⇒ Object
Returns the value of attribute host.
79 80 81 |
# File 'lib/webee.rb', line 79 def host @host end |
.password ⇒ Object
Returns the value of attribute password.
79 80 81 |
# File 'lib/webee.rb', line 79 def password @password end |
.port ⇒ Object
Returns the value of attribute port.
79 80 81 |
# File 'lib/webee.rb', line 79 def port @port end |
.url ⇒ Object
Returns the value of attribute url.
79 80 81 |
# File 'lib/webee.rb', line 79 def url @url end |
.user ⇒ Object
Returns the value of attribute user.
79 80 81 |
# File 'lib/webee.rb', line 79 def user @user end |
Class Method Details
.test_auth ⇒ Object
94 95 96 97 98 99 100 101 |
# File 'lib/webee.rb', line 94 def self.test_auth begin RestClient.get Api.url rescue Exception return false end true end |