Module: Fog::Brightbox::ModelHelper
- Included in:
- Compute::Server, Model
- Defined in:
- lib/fog/brightbox/model_helper.rb
Instance Method Summary collapse
Instance Method Details
#collection_name ⇒ Object
10 11 12 |
# File 'lib/fog/brightbox/model_helper.rb', line 10 def collection_name inflector.pluralize(resource_name) end |
#resource_name ⇒ Object
6 7 8 |
# File 'lib/fog/brightbox/model_helper.rb', line 6 def resource_name inflector.underscore(inflector.demodulize(self.class)) end |