Class: HipChat::Api
- Inherits:
-
Object
- Object
- HipChat::Api
- Includes:
- CommonMethods
- Defined in:
- lib/hip_chat/api.rb
Constant Summary
Constants included from CommonMethods
CommonMethods::BASE_URL, CommonMethods::OK_CODES
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#users ⇒ Object
readonly
Returns the value of attribute users.
Instance Method Summary collapse
-
#initialize(token) ⇒ Api
constructor
A new instance of Api.
- #refresh_users ⇒ Object
Constructor Details
#initialize(token) ⇒ Api
Returns a new instance of Api.
11 12 13 14 |
# File 'lib/hip_chat/api.rb', line 11 def initialize(token) @token = token validate_token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
9 10 11 |
# File 'lib/hip_chat/api.rb', line 9 def token @token end |
#users ⇒ Object (readonly)
Returns the value of attribute users.
9 10 11 |
# File 'lib/hip_chat/api.rb', line 9 def users @users end |