Class: Uktt::Quota
- Inherits:
-
Object
- Object
- Uktt::Quota
- Defined in:
- lib/uktt/quota.rb
Overview
A Quota object for dealing with an API resource
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Quota
constructor
A new instance of Quota.
- #search(params) ⇒ Object
Constructor Details
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
4 5 6 |
# File 'lib/uktt/quota.rb', line 4 def config @config end |
Instance Method Details
#search(params) ⇒ Object
11 12 13 |
# File 'lib/uktt/quota.rb', line 11 def search(params) fetch "#{QUOTA}/search.json?#{URI.encode_www_form(params)}" end |