Class: Bparity::Verification::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/bparity/verification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



5
6
7
# File 'lib/bparity/verification.rb', line 5

def description
  @description
end

#differencesObject

Returns the value of attribute differences

Returns:

  • (Object)

    the current value of differences



5
6
7
# File 'lib/bparity/verification.rb', line 5

def differences
  @differences
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/bparity/verification.rb', line 5

def id
  @id
end

#provenanceObject

Returns the value of attribute provenance

Returns:

  • (Object)

    the current value of provenance



5
6
7
# File 'lib/bparity/verification.rb', line 5

def provenance
  @provenance
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



5
6
7
# File 'lib/bparity/verification.rb', line 5

def status
  @status
end

#waiverObject

Returns the value of attribute waiver

Returns:

  • (Object)

    the current value of waiver



5
6
7
# File 'lib/bparity/verification.rb', line 5

def waiver
  @waiver
end

Instance Method Details

#to_hObject



6
7
8
9
10
# File 'lib/bparity/verification.rb', line 6

def to_h
  { "id" => id, "status" => status.to_s.upcase, "description" => description,
    "differences" => differences, "provenance" => provenance,
    "waiver" => waiver&.to_h&.transform_keys(&:to_s) }
end