lib/direct_employers/client.rb in direct_employers-0.0.1 vs lib/direct_employers/client.rb in direct_employers-0.0.2
- old
+ new
@@ -1,11 +1,21 @@
require 'direct_employers/connection'
require 'direct_employers/request'
module DirectEmployers
class Client
+ attr_accessor :key
include DirectEmployers::Connection
include DirectEmployers::Request
+
+ # Set your development key on New
+ #
+ # @param options [Hash] A customizable set of options.
+ # @example
+ # DirectEmployers.New({:key => "abc123"})
+ def initialize(options={})
+ @key = options[:key]
+ end
# Get a list of all jobs that match the query string parameters
#
# @param options [Hash] A customizable set of options.
# @option options kw [String] Keywords in a standard Boolean format.