Class: Prevoty::APIKeyInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/prevoty/responses/api_key_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#maximumObject (readonly)

Returns the value of attribute maximum.



3
4
5
# File 'lib/prevoty/responses/api_key_info.rb', line 3

def maximum
  @maximum
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/prevoty/responses/api_key_info.rb', line 3

def message
  @message
end

#remainingObject (readonly)

Returns the value of attribute remaining.



3
4
5
# File 'lib/prevoty/responses/api_key_info.rb', line 3

def remaining
  @remaining
end

#usedObject (readonly)

Returns the value of attribute used.



3
4
5
# File 'lib/prevoty/responses/api_key_info.rb', line 3

def used
  @used
end