Class: TreeHaver::ProcessRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



70
71
72
# File 'lib/tree_haver/contracts.rb', line 70

def language
  @language
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



70
71
72
# File 'lib/tree_haver/contracts.rb', line 70

def source
  @source
end

Instance Method Details

#to_hObject



71
72
73
74
75
76
# File 'lib/tree_haver/contracts.rb', line 71

def to_h
  {
    source: source,
    language: language
  }
end