Class: Fictium::Resource
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#description ⇒ Object
Returns the value of attribute description.
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#name ⇒ Object
Returns the value of attribute name.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
- #create_action ⇒ Object
-
#initialize(document) ⇒ Resource
constructor
A new instance of Resource.
Methods inherited from Model
Constructor Details
#initialize(document) ⇒ Resource
Returns a new instance of Resource.
6 7 8 9 10 |
# File 'lib/fictium/poros/resource.rb', line 6 def initialize(document) @document = document @actions = [] @tags = [] end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
3 4 5 |
# File 'lib/fictium/poros/resource.rb', line 3 def actions @actions end |
#base_path ⇒ Object
Returns the value of attribute base_path.
4 5 6 |
# File 'lib/fictium/poros/resource.rb', line 4 def base_path @base_path end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/fictium/poros/resource.rb', line 4 def description @description end |
#document ⇒ Object (readonly)
Returns the value of attribute document.
3 4 5 |
# File 'lib/fictium/poros/resource.rb', line 3 def document @document end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/fictium/poros/resource.rb', line 4 def name @name end |
#summary ⇒ Object
Returns the value of attribute summary.
4 5 6 |
# File 'lib/fictium/poros/resource.rb', line 4 def summary @summary end |
#tags ⇒ Object
Returns the value of attribute tags.
4 5 6 |
# File 'lib/fictium/poros/resource.rb', line 4 def @tags end |