Class: Tataru::Representations::OutputRepresentation

Inherits:
Tataru::Representation show all
Defined in:
lib/tataru/representations/output_representation.rb

Overview

internal representation of output

Instance Attribute Summary collapse

Attributes inherited from Tataru::Representation

#value

Instance Method Summary collapse

Constructor Details

#initialize(resource_name, output_field_name) ⇒ OutputRepresentation

Returns a new instance of OutputRepresentation.



9
10
11
12
# File 'lib/tataru/representations/output_representation.rb', line 9

def initialize(resource_name, output_field_name)
  @resource_name = resource_name
  @output_field_name = output_field_name
end

Instance Attribute Details

#output_field_nameObject (readonly)

Returns the value of attribute output_field_name.



7
8
9
# File 'lib/tataru/representations/output_representation.rb', line 7

def output_field_name
  @output_field_name
end

#resource_nameObject (readonly)

Returns the value of attribute resource_name.



7
8
9
# File 'lib/tataru/representations/output_representation.rb', line 7

def resource_name
  @resource_name
end

Instance Method Details

#dependenciesObject



14
15
16
# File 'lib/tataru/representations/output_representation.rb', line 14

def dependencies
  [@resource_name]
end