Class: PowerApi::GeneratorHelper::ResourceHelper::Resource

Inherits:
Object
  • Object
show all
Includes:
ActiveRecordResource
Defined in:
lib/power_api/generator_helper/resource_helper.rb

Instance Method Summary collapse

Methods included from ActiveRecordResource

#attributes_names, #attributes_symbols_text_list, #camel, #camel_plural, #class_definition_line, #id, #optional_resource_attributes, #path, #permitted_attributes, #permitted_attributes_names, #permitted_attributes_symbols_text_list, #plural, #plural_titleized, #required_attributes_names, #required_resource_attributes, #resource_attributes=, #resource_name=, #snake_case, #titleized, #upcase, #upcase_plural

Constructor Details

#initialize(resource_name) ⇒ Resource

Returns a new instance of Resource.



7
8
9
# File 'lib/power_api/generator_helper/resource_helper.rb', line 7

def initialize(resource_name)
  self.resource_name = resource_name
end