Class: Appifier::Components::Appifile
- Inherits:
-
Object
- Object
- Appifier::Components::Appifile
- Defined in:
- lib/appifier/components/Appifile.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #actions ⇒ Object
- #dataset_rules ⇒ Object
-
#initialize(path:) ⇒ Appifile
constructor
A new instance of Appifile.
Constructor Details
#initialize(path:) ⇒ Appifile
Returns a new instance of Appifile.
7 8 9 10 11 |
# File 'lib/appifier/components/Appifile.rb', line 7 def initialize(path:) @path = path @content = {} openfile end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
5 6 7 |
# File 'lib/appifier/components/Appifile.rb', line 5 def content @content end |
Instance Method Details
#actions ⇒ Object
17 18 19 |
# File 'lib/appifier/components/Appifile.rb', line 17 def actions @content[:actions] end |
#dataset_rules ⇒ Object
13 14 15 |
# File 'lib/appifier/components/Appifile.rb', line 13 def dataset_rules @content[:template][:dataset] end |