Module: Fog::Brightbox::ModelHelper

Included in:
Model, Compute::Brightbox::Server
Defined in:
lib/fog/brightbox/model_helper.rb

Instance Method Summary collapse

Instance Method Details

#collection_nameObject



10
11
12
# File 'lib/fog/brightbox/model_helper.rb', line 10

def collection_name
  Inflecto.pluralize(resource_name)
end

#resource_nameObject



6
7
8
# File 'lib/fog/brightbox/model_helper.rb', line 6

def resource_name
  Inflecto.underscore(Inflecto.demodulize(self.class))
end