Class: TreeHaver::EditProjectionExecutionRequest

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backend_refObject

Returns the value of attribute backend_ref

Returns:

  • (Object)

    the current value of backend_ref



416
417
418
# File 'lib/tree_haver/contracts.rb', line 416

def backend_ref
  @backend_ref
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



416
417
418
# File 'lib/tree_haver/contracts.rb', line 416

def language
  @language
end

#operationsObject

Returns the value of attribute operations

Returns:

  • (Object)

    the current value of operations



416
417
418
# File 'lib/tree_haver/contracts.rb', line 416

def operations
  @operations
end

#provider_idObject

Returns the value of attribute provider_id

Returns:

  • (Object)

    the current value of provider_id



416
417
418
# File 'lib/tree_haver/contracts.rb', line 416

def provider_id
  @provider_id
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



416
417
418
# File 'lib/tree_haver/contracts.rb', line 416

def source
  @source
end

Instance Method Details

#to_hObject



418
419
420
421
422
423
424
425
426
# File 'lib/tree_haver/contracts.rb', line 418

def to_h
  {
    provider_id: provider_id,
    backend_ref: backend_ref.to_h,
    language: language,
    source: source,
    operations: (operations || []).map(&:to_h)
  }
end