Sha256: 84c95759e471778c5aa9e97325e6394deb2ebd15d1e9322d856e94c54024b93a

Contents?: true

Size: 577 Bytes

Versions: 4

Compression:

Stored size: 577 Bytes

Contents

require 'saddle/method_tree_builder'
require 'saddle/options'
require 'saddle/requester'



# 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

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
saddle-0.0.7 lib/saddle.rb
saddle-0.0.6 lib/saddle.rb
saddle-0.0.5 lib/saddle.rb
saddle-0.0.4 lib/saddle.rb