Returns a new instance of Endpoint.
6 7 8 9 10
# File 'lib/scale/endpoints/endpoint.rb', line 6 def initialize(api, *args) @api = api @args = args @params = Scale.hash(args.pop) if args.last.is_a?(Hash) end