Class: WeBee::Api

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.hostObject

Returns the value of attribute host.



79
80
81
# File 'lib/webee.rb', line 79

def host
  @host
end

.passwordObject

Returns the value of attribute password.



79
80
81
# File 'lib/webee.rb', line 79

def password
  @password
end

.portObject

Returns the value of attribute port.



79
80
81
# File 'lib/webee.rb', line 79

def port
  @port
end

.urlObject

Returns the value of attribute url.



79
80
81
# File 'lib/webee.rb', line 79

def url
  @url
end

.userObject

Returns the value of attribute user.



79
80
81
# File 'lib/webee.rb', line 79

def user
  @user
end

Class Method Details

.test_authObject



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