Class: Mindee::Parsing::Common::ExecutionFile

Inherits:
Object
  • Object
show all
Defined in:
lib/mindee/parsing/common/execution_file.rb

Overview

Representation of a workflow execution’s file data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_response) ⇒ ExecutionFile

Returns a new instance of ExecutionFile.

Parameters:

  • http_response (Hash)


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

#aliasString (readonly)

Optional alias for the file.

Returns:

  • (String)


14
15
16
# File 'lib/mindee/parsing/common/execution_file.rb', line 14

def alias
  @alias
end

#nameString (readonly)

File name.

Returns:

  • (String)


10
11
12
# File 'lib/mindee/parsing/common/execution_file.rb', line 10

def name
  @name
end