Class: TreeHaver::BackendReference
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::BackendReference
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#family ⇒ Object
Returns the value of attribute family.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
Instance Attribute Details
#family ⇒ Object
Returns the value of attribute family
14 15 16 |
# File 'lib/tree_haver/contracts.rb', line 14 def family @family end |
#id ⇒ Object
Returns the value of attribute id
14 15 16 |
# File 'lib/tree_haver/contracts.rb', line 14 def id @id end |
Instance Method Details
#to_h ⇒ Object
15 16 17 |
# File 'lib/tree_haver/contracts.rb', line 15 def to_h { id: id, family: family } end |