Class: Ecoportal::API::GraphQL::Diff::Pairing::Ledger::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/ecoportal/api/graphql/diff/pairing/ledger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



31
32
33
# File 'lib/ecoportal/api/graphql/diff/pairing/ledger.rb', line 31

def confidence
  @confidence
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



31
32
33
# File 'lib/ecoportal/api/graphql/diff/pairing/ledger.rb', line 31

def kind
  @kind
end

#matched_byObject

Returns the value of attribute matched_by

Returns:

  • (Object)

    the current value of matched_by



31
32
33
# File 'lib/ecoportal/api/graphql/diff/pairing/ledger.rb', line 31

def matched_by
  @matched_by
end

#recorded_atObject

Returns the value of attribute recorded_at

Returns:

  • (Object)

    the current value of recorded_at



31
32
33
# File 'lib/ecoportal/api/graphql/diff/pairing/ledger.rb', line 31

def recorded_at
  @recorded_at
end

#signalsObject

Returns the value of attribute signals

Returns:

  • (Object)

    the current value of signals



31
32
33
# File 'lib/ecoportal/api/graphql/diff/pairing/ledger.rb', line 31

def signals
  @signals
end

#source_idObject

Returns the value of attribute source_id

Returns:

  • (Object)

    the current value of source_id



31
32
33
# File 'lib/ecoportal/api/graphql/diff/pairing/ledger.rb', line 31

def source_id
  @source_id
end

#target_idObject

Returns the value of attribute target_id

Returns:

  • (Object)

    the current value of target_id



31
32
33
# File 'lib/ecoportal/api/graphql/diff/pairing/ledger.rb', line 31

def target_id
  @target_id
end

Instance Method Details

#to_hObject



33
34
35
36
37
38
# File 'lib/ecoportal/api/graphql/diff/pairing/ledger.rb', line 33

def to_h
  {
    kind: kind, source_id: source_id, target_id: target_id, matched_by: matched_by,
    confidence: confidence, signals: signals, recorded_at: recorded_at
  }.compact
end