lib/hull.rb in hullio-0.2.1 vs lib/hull.rb in hullio-0.3.0

- old
+ new

@@ -10,9 +10,13 @@ # @return [Hull::Client] def new(options={}) Hull::Client.new(options) end + def as(user_id) + Hull::Client.new({ user_id: user_id }) + end + # Delegate to hull::Client def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end