Class: Forceps::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/forceps/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/forceps/client.rb', line 3

def options
  @options
end

Instance Method Details

#configure(options = {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/forceps/client.rb', line 5

def configure(options={})
  @options = options.merge(default_options)

  declare_remote_model_classes
  make_associations_reference_remote_classes

  logger.debug "Classes handled by Forceps: #{model_classes.collect(&:name).inspect}"
end