Class: Brightcontent::Resource
- Inherits:
-
Struct
- Object
- Struct
- Brightcontent::Resource
- Defined in:
- lib/brightcontent/resource.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path
4 5 6 |
# File 'lib/brightcontent/resource.rb', line 4 def path @path end |
Instance Method Details
#klass ⇒ Object
5 6 7 8 9 |
# File 'lib/brightcontent/resource.rb', line 5 def klass path.classify.constantize rescue "Brightcontent::#{path.classify}".constantize end |
#to_partial_path ⇒ Object
11 12 13 |
# File 'lib/brightcontent/resource.rb', line 11 def to_partial_path "application/resource" end |