Class: Guidestar::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/guidestar/client.rb

Constant Summary collapse

@@default_options =
{ :version => "1.0", :pageSize => 25, :offset => 0 }
@@options_mapping =
{ :name => :orgName,
  :zip_radius => :zipradius,
  :ntee_code => :nteeCode,
  :page_size => :pageSize
}
@@connection =
nil

Class Method Summary collapse

Class Method Details

.search(*args) ⇒ Object



20
21
22
23
24
# File 'lib/guidestar/client.rb', line 20

def search(*args)
  options = extract_options!(args)
  options = translate_options(options)
  result = post(@@default_options.merge(options))
end

.set_credentials(username, password, proxy = nil) ⇒ Object



16
17
18
# File 'lib/guidestar/client.rb', line 16

def set_credentials(username, password, proxy=nil)
  @@connection = Connection.new(username, password, proxy)
end