Class: Mindee::Parsing::Common::ExecutionFile
- Inherits:
-
Object
- Object
- Mindee::Parsing::Common::ExecutionFile
- Defined in:
- lib/mindee/parsing/common/execution_file.rb
Overview
Representation of a workflow execution’s file data.
Instance Attribute Summary collapse
-
#alias ⇒ String
readonly
Optional alias for the file.
-
#name ⇒ String
readonly
File name.
Instance Method Summary collapse
-
#initialize(http_response) ⇒ ExecutionFile
constructor
A new instance of ExecutionFile.
Constructor Details
#initialize(http_response) ⇒ ExecutionFile
Returns a new instance of ExecutionFile.
17 18 19 20 |
# File 'lib/mindee/parsing/common/execution_file.rb', line 17 def initialize(http_response) @name = http_response['name'] @alias = http_response['alias'] end |
Instance Attribute Details
#alias ⇒ String (readonly)
Optional alias for the file.
14 15 16 |
# File 'lib/mindee/parsing/common/execution_file.rb', line 14 def alias @alias end |
#name ⇒ String (readonly)
File name.
10 11 12 |
# File 'lib/mindee/parsing/common/execution_file.rb', line 10 def name @name end |