Class: DirectEmployers::Client
- Inherits:
-
Object
- Object
- DirectEmployers::Client
- Includes:
- Connection, Request
- Defined in:
- lib/direct_employers/client.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
Set your development key on New.
-
#search(options = {}) ⇒ Array<Hashie::Mash>
Get a list of all jobs that match the query string parameters.
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ Client
Set your development key on New
15 16 17 |
# File 'lib/direct_employers/client.rb', line 15 def initialize(={}) @key = [:key] end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/direct_employers/client.rb', line 6 def key @key end |
Instance Method Details
#search(options = {}) ⇒ Array<Hashie::Mash>
Get a list of all jobs that match the query string parameters
41 42 43 |
# File 'lib/direct_employers/client.rb', line 41 def search(={}) get("api.asp", ) end |