Class: Censys::Account::Quota

Inherits:
Object
  • Object
show all
Defined in:
lib/censys/account/quota.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#allowanceObject (readonly)

Returns the value of attribute allowance.



8
9
10
# File 'lib/censys/account/quota.rb', line 8

def allowance
  @allowance
end

#resets_atObject (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

#usedObject (readonly)

Returns the value of attribute used.



6
7
8
# File 'lib/censys/account/quota.rb', line 6

def used
  @used
end