class Seahorse::Client::Base

def define(options = {})

Returns:
  • (Class) -

Options Hash: (**options)
  • :plugins (Array) -- A list of plugins to
  • :api (Model::Api, Hash) --
def define(options = {})
  subclass = Class.new(self)
  subclass.set_api(options[:api] || api)
  Array(options[:plugins]).each do |plugin|
    subclass.add_plugin(plugin)
  end
  subclass
end