Class: Rails::SingletonResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/rails/singleton_resource.rb

Instance Attribute Summary

Attributes inherited from Resource

#controller_path, #home_route, #id, #name, #name_prefix, #path_prefix, #prefix_parameters, #singular_name

Instance Method Summary collapse

Methods inherited from Resource

#controller, #initialize, #path, #to_xml

Constructor Details

This class inherits a constructor from Rails::Resource

Instance Method Details

#singleton?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/rails/singleton_resource.rb', line 5

def singleton?
  true
end