module Fog::Brightbox::ModelHelper

Public Instance Methods

collection_name() click to toggle source
# File lib/fog/brightbox/model_helper.rb, line 10
def collection_name
  inflector.pluralize(resource_name)
end
resource_name() click to toggle source
# File lib/fog/brightbox/model_helper.rb, line 6
def resource_name
  inflector.underscore(inflector.demodulize(self.class))
end

Private Instance Methods

inflector() click to toggle source
# File lib/fog/brightbox/model_helper.rb, line 16
def inflector
  @inflector ||= Dry::Inflector.new
end