Class: Censys::Account::Quota
- Inherits:
-
Object
- Object
- Censys::Account::Quota
- Defined in:
- lib/censys/account/quota.rb
Instance Attribute Summary collapse
-
#allowance ⇒ Object
readonly
Returns the value of attribute allowance.
-
#resets_at ⇒ Object
readonly
Returns the value of attribute resets_at.
-
#used ⇒ Object
readonly
Returns the value of attribute used.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Quota
constructor
A new instance of Quota.
Constructor Details
#initialize(attributes) ⇒ Quota
Returns a new instance of Quota.
10 11 12 13 14 |
# File 'lib/censys/account/quota.rb', line 10 def initialize(attributes) @used = attributes["used"] @resets_at = attributes["resets_at"] @allowance = attributes["allowance"] end |
Instance Attribute Details
#allowance ⇒ Object (readonly)
Returns the value of attribute allowance.
8 9 10 |
# File 'lib/censys/account/quota.rb', line 8 def allowance @allowance end |
#resets_at ⇒ Object (readonly)
Returns the value of attribute resets_at.
7 8 9 |
# File 'lib/censys/account/quota.rb', line 7 def resets_at @resets_at end |
#used ⇒ Object (readonly)
Returns the value of attribute used.
6 7 8 |
# File 'lib/censys/account/quota.rb', line 6 def used @used end |