Module: Mongosteen::ClassMethods

Defined in:
lib/mongosteen/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#csv_config(config_hash = {}) ⇒ Object



11
12
13
# File 'lib/mongosteen/class_methods.rb', line 11

def csv_config(config_hash={})
  self.as_csv_config = config_hash
end

#json_config(config_hash = {}) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/mongosteen/class_methods.rb', line 3

def json_config(config_hash={})
  self.as_json_config_actions = {}
  actions = config_hash.delete(:actions) || {}

  set_json_actions(actions)
  set_json_default(config_hash)
end