Class: Uktt::Quota

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

Overview

A Quota object for dealing with an API resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Quota

Returns a new instance of Quota.



6
7
8
9
# File 'lib/uktt/quota.rb', line 6

def initialize(opts = {})
  Uktt.configure(opts)
  @config = Uktt.config
end

Instance Attribute Details

#configObject

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