Class: TreeHaver::BackendReference

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#familyObject

Returns the value of attribute family

Returns:

  • (Object)

    the current value of family



14
15
16
# File 'lib/tree_haver/contracts.rb', line 14

def family
  @family
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



14
15
16
# File 'lib/tree_haver/contracts.rb', line 14

def id
  @id
end

Instance Method Details

#to_hObject



15
16
17
# File 'lib/tree_haver/contracts.rb', line 15

def to_h
  { id: id, family: family }
end