Class: Clickwrap::Integrity::Chain::Break
- Inherits:
-
Data
- Object
- Data
- Clickwrap::Integrity::Chain::Break
- Defined in:
- lib/clickwrap/integrity/chain.rb
Instance Attribute Summary collapse
-
#chain_scope ⇒ Object
readonly
Returns the value of attribute chain_scope.
-
#chain_sequence ⇒ Object
readonly
Returns the value of attribute chain_sequence.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
Instance Attribute Details
#chain_scope ⇒ Object (readonly)
Returns the value of attribute chain_scope
45 46 47 |
# File 'lib/clickwrap/integrity/chain.rb', line 45 def chain_scope @chain_scope end |
#chain_sequence ⇒ Object (readonly)
Returns the value of attribute chain_sequence
45 46 47 |
# File 'lib/clickwrap/integrity/chain.rb', line 45 def chain_sequence @chain_sequence end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail
45 46 47 |
# File 'lib/clickwrap/integrity/chain.rb', line 45 def detail @detail end |
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id
45 46 47 |
# File 'lib/clickwrap/integrity/chain.rb', line 45 def event_id @event_id end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
45 46 47 |
# File 'lib/clickwrap/integrity/chain.rb', line 45 def reason @reason end |
Instance Method Details
#to_h ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/clickwrap/integrity/chain.rb', line 46 def to_h { "chain_scope" => chain_scope, "chain_sequence" => chain_sequence, "event_id" => event_id, "reason" => reason.to_s, "detail" => detail }.compact end |
#to_s ⇒ Object
56 |
# File 'lib/clickwrap/integrity/chain.rb', line 56 def to_s = "#{chain_scope}##{chain_sequence} #{event_id}: #{detail}" |