Module: Strobe::Resource::Singleton::ClassMethods

Defined in:
lib/strobe/resource/singleton.rb

Instance Method Summary collapse

Instance Method Details

#denormalize_params(params) ⇒ Object



14
15
16
17
# File 'lib/strobe/resource/singleton.rb', line 14

def denormalize_params(params)
  # Nothing fancy implemented yet
  params[pluralized_root]
end

#resource_nameObject Also known as: singular_resource_name



8
9
10
# File 'lib/strobe/resource/singleton.rb', line 8

def resource_name
  base_const_name.underscore
end