Sha256: 67e6b949aa805f49debfd7e358ff7cb85ddb6e1cff41d3ef9f18253863d0a191
Contents?: true
Size: 726 Bytes
Versions: 2
Compression:
Stored size: 726 Bytes
Contents
require 'saddle/method_tree_builder' require 'saddle/options' require 'saddle/client_attributes' require 'saddle/requester' require 'saddle/errors' # Ghost ride the whip. # Inherit your client implementation from Saddle::Client # then call YourCrayClient.create to get a client instance. module Saddle class Client extend MethodTreeBuilder extend Options # Once your implementation is written, this is the magic you need to # create a client instance. def self.create(opt={}) self.build_tree( Saddle::Requester.new( default_options.merge(opt) ) ) end def self.inherited(obj) obj.send(:include, Saddle::ClientAttributes) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saddle-0.0.11 | lib/saddle.rb |
saddle-0.0.10 | lib/saddle.rb |