Class: TreeHaver::ProcessRequest
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ProcessRequest
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
Returns the value of attribute language.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#language ⇒ Object
Returns the value of attribute language
70 71 72 |
# File 'lib/tree_haver/contracts.rb', line 70 def language @language end |
#source ⇒ Object
Returns the value of attribute source
70 71 72 |
# File 'lib/tree_haver/contracts.rb', line 70 def source @source end |
Instance Method Details
#to_h ⇒ Object
71 72 73 74 75 76 |
# File 'lib/tree_haver/contracts.rb', line 71 def to_h { source: source, language: language } end |