Class: Saddle::Client

Inherits:
Object
  • Object
show all
Extended by:
MethodTreeBuilder, Options
Defined in:
lib/saddle.rb

Class Method Summary collapse

Methods included from MethodTreeBuilder

build_node_children, build_root_node, build_tree, endpoints_directory, endpoints_module, implementation_module, inherited, knows_root?

Methods included from Options

additional_middlewares, default_options, host, num_retries, port, post_style, response_style, stubs, timeout, use_ssl

Class Method Details

.create(opt = {}) ⇒ Object

Once your implementation is written, this is the magic you need to create a client instance.



22
23
24
25
26
27
28
# File 'lib/saddle.rb', line 22

def self.create(opt={})
  self.build_tree(
    Saddle::Requester.new(
      default_options.merge(opt)
    )
  )
end