Class: Bparity::Verification::Result
- Inherits:
-
Struct
- Object
- Struct
- Bparity::Verification::Result
- Defined in:
- lib/bparity/verification.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#differences ⇒ Object
Returns the value of attribute differences.
-
#id ⇒ Object
Returns the value of attribute id.
-
#provenance ⇒ Object
Returns the value of attribute provenance.
-
#status ⇒ Object
Returns the value of attribute status.
-
#waiver ⇒ Object
Returns the value of attribute waiver.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
5 6 7 |
# File 'lib/bparity/verification.rb', line 5 def description @description end |
#differences ⇒ Object
Returns the value of attribute differences
5 6 7 |
# File 'lib/bparity/verification.rb', line 5 def differences @differences end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/bparity/verification.rb', line 5 def id @id end |
#provenance ⇒ Object
Returns the value of attribute provenance
5 6 7 |
# File 'lib/bparity/verification.rb', line 5 def provenance @provenance end |
#status ⇒ Object
Returns the value of attribute status
5 6 7 |
# File 'lib/bparity/verification.rb', line 5 def status @status end |
#waiver ⇒ Object
Returns the value of attribute waiver
5 6 7 |
# File 'lib/bparity/verification.rb', line 5 def waiver @waiver end |
Instance Method Details
#to_h ⇒ Object
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 |