Class: Infrataster::Resources::BaseResource
- Inherits:
-
Object
- Object
- Infrataster::Resources::BaseResource
- Defined in:
- lib/infrataster/resources/base_resource.rb
Direct Known Subclasses
Instance Method Summary collapse
- #context_class ⇒ Object
-
#name ⇒ Object
do nothing.
Instance Method Details
#context_class ⇒ Object
9 10 11 |
# File 'lib/infrataster/resources/base_resource.rb', line 9 def context_class Contexts.const_get("#{name}Context") end |
#name ⇒ Object
do nothing
5 6 7 |
# File 'lib/infrataster/resources/base_resource.rb', line 5 def name self.class.name.split('::').last[0...(-1 * 'Resource'.size)] end |