Class: Guidestar::Chain

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

Instance Attribute Summary collapse

Attributes inherited from Client

#proxy

Instance Method Summary collapse

Methods inherited from Client

#api_url

Methods included from Guidestar::Client::Search

#charity_check, #detailed_search, #npo_validation, #search

Methods included from Connection

#connection

Methods included from Request

#get, #get_raw

Constructor Details

#initialize(*args) ⇒ Chain

Returns a new instance of Chain.



69
70
71
72
# File 'lib/guidestar/client.rb', line 69

def initialize(*args)
  @options = {}
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args) ⇒ Object



73
74
75
76
# File 'lib/guidestar/client.rb', line 73

def method_missing(method_name, *args)
  @options[method_name.to_sym]=args.first
  self
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



68
69
70
# File 'lib/guidestar/client.rb', line 68

def options
  @options
end