Sha256: 36bc9671ae64e1c8384e30e968feba2ff7e60d60422371054a483227a7592cd5
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
require 'saddle/client_attributes' require 'saddle/method_tree_builder' require 'saddle/options' require 'saddle/requester' # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
saddle-0.0.12 | lib/saddle.rb |