Class: ContextExposer::Page::Resource
- Inherits:
-
Object
- Object
- ContextExposer::Page::Resource
- Defined in:
- lib/context_exposer/page/resource.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
Returns the value of attribute controller.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name = nil, type = nil) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(name = nil, type = nil) ⇒ Resource
Returns a new instance of Resource.
6 7 8 9 |
# File 'lib/context_exposer/page/resource.rb', line 6 def initialize name = nil, type = nil self.name = name self.type = type if type end |
Instance Attribute Details
#controller ⇒ Object
Returns the value of attribute controller.
4 5 6 |
# File 'lib/context_exposer/page/resource.rb', line 4 def controller @controller end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/context_exposer/page/resource.rb', line 4 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/context_exposer/page/resource.rb', line 4 def type @type end |