Class: Prevoty::APIKeyInfo
- Inherits:
-
Object
- Object
- Prevoty::APIKeyInfo
- Defined in:
- lib/prevoty/responses/api_key_info.rb
Instance Attribute Summary collapse
-
#maximum ⇒ Object
readonly
Returns the value of attribute maximum.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#remaining ⇒ Object
readonly
Returns the value of attribute remaining.
-
#used ⇒ Object
readonly
Returns the value of attribute used.
Instance Method Summary collapse
-
#initialize(data) ⇒ APIKeyInfo
constructor
A new instance of APIKeyInfo.
Constructor Details
#initialize(data) ⇒ APIKeyInfo
Returns a new instance of APIKeyInfo.
5 6 7 8 9 10 |
# File 'lib/prevoty/responses/api_key_info.rb', line 5 def initialize(data) @maximum = data["maximum"] @used = data["used"] @remaining = data["remaining"] @message = data["message"] end |
Instance Attribute Details
#maximum ⇒ Object (readonly)
Returns the value of attribute maximum.
3 4 5 |
# File 'lib/prevoty/responses/api_key_info.rb', line 3 def maximum @maximum end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/prevoty/responses/api_key_info.rb', line 3 def @message end |
#remaining ⇒ Object (readonly)
Returns the value of attribute remaining.
3 4 5 |
# File 'lib/prevoty/responses/api_key_info.rb', line 3 def remaining @remaining end |
#used ⇒ Object (readonly)
Returns the value of attribute used.
3 4 5 |
# File 'lib/prevoty/responses/api_key_info.rb', line 3 def used @used end |