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

#confidence ⇒ Object

Returns the value of attribute confidence



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

def confidence
  @confidence
end

#kind ⇒ Object

Returns the value of attribute kind



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

def kind
  @kind
end

#matched_by ⇒ Object

Returns the value of attribute matched_by



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

def matched_by
  @matched_by
end

#recorded_at ⇒ Object

Returns the value of attribute recorded_at



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

def recorded_at
  @recorded_at
end

#signals ⇒ Object

Returns the value of attribute signals



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

def signals
  @signals
end

#source_id ⇒ Object

Returns the value of attribute source_id



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

def source_id
  @source_id
end

#target_id ⇒ Object

Returns the value of attribute 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_h ⇒ Object



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