Class: Dox::Entities::Resource
- Inherits:
-
Object
- Object
- Dox::Entities::Resource
- Defined in:
- lib/dox/entities/resource.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(details) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(details) ⇒ Resource
Returns a new instance of Resource.
7 8 9 10 11 12 |
# File 'lib/dox/entities/resource.rb', line 7 def initialize(details) @name = details[:resource_name] @group = details[:resource_group_name] @desc = details[:resource_desc] @actions = {} end |
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions.
5 6 7 |
# File 'lib/dox/entities/resource.rb', line 5 def actions @actions end |
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
4 5 6 |
# File 'lib/dox/entities/resource.rb', line 4 def desc @desc end |
#group ⇒ Object (readonly)
Returns the value of attribute group.
4 5 6 |
# File 'lib/dox/entities/resource.rb', line 4 def group @group end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/dox/entities/resource.rb', line 4 def name @name end |