lib/hh.rb in hh-0.0.4 vs lib/hh.rb in hh-0.0.5
- old
+ new
@@ -8,22 +8,33 @@
class << self
# Alias for Hh::Client.new
#
# @return [Hh::Client]
-
def client
HH::Client.new
end
+
+ # Delegate to HH::Client
+ def method_missing(method, *args, &block)
+ return super unless new.respond_to?(method)
+ new.send(method, *args, &block)
+ end
+
+ def respond_to?(method, include_private = false)
+ new.respond_to?(method, include_private) || super(method, include_private)
+ end
end
-end
+end #HH
+require 'hh/API/vacancy_employer'
require 'hh/API/specialization'
require 'hh/API/employment'
require 'hh/API/statistic'
require 'hh/API/schedule'
require 'hh/API/currency'
require 'hh/API/employer'
+require 'hh/API/vacancy'
require 'hh/API/region'
require 'hh/API/field'
require 'hh/API/metro'
require 'hh/api'
require 'hh/request'