Class: Clickwrap::Import::Legacy::Result
- Inherits:
-
Data
- Object
- Data
- Clickwrap::Import::Legacy::Result
- Defined in:
- lib/clickwrap/import/legacy.rb
Overview
What an import did, or would do. Returned by both the dry run and the real thing so a migration script reads the same either way.
Instance Attribute Summary collapse
-
#actor_reference ⇒ Object
readonly
Returns the value of attribute actor_reference.
-
#counts_as_current ⇒ Object
readonly
Returns the value of attribute counts_as_current.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#idempotency_key ⇒ Object
readonly
Returns the value of attribute idempotency_key.
-
#known ⇒ Object
readonly
Returns the value of attribute known.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#occurred_at ⇒ Object
readonly
Returns the value of attribute occurred_at.
-
#policy_key ⇒ Object
readonly
Returns the value of attribute policy_key.
-
#recorded_at_by_server ⇒ Object
readonly
Returns the value of attribute recorded_at_by_server.
-
#statement_keys ⇒ Object
readonly
Returns the value of attribute statement_keys.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#unknown ⇒ Object
readonly
Returns the value of attribute unknown.
Instance Method Summary collapse
- #already_imported? ⇒ Boolean
- #event_id ⇒ Object
- #imported? ⇒ Boolean
- #planned? ⇒ Boolean
- #receipt ⇒ Object
- #to_s ⇒ Object
- #written? ⇒ Boolean
Instance Attribute Details
#actor_reference ⇒ Object (readonly)
Returns the value of attribute actor_reference
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def actor_reference @actor_reference end |
#counts_as_current ⇒ Object (readonly)
Returns the value of attribute counts_as_current
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def counts_as_current @counts_as_current end |
#event ⇒ Object (readonly)
Returns the value of attribute event
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def event @event end |
#idempotency_key ⇒ Object (readonly)
Returns the value of attribute idempotency_key
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def idempotency_key @idempotency_key end |
#known ⇒ Object (readonly)
Returns the value of attribute known
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def known @known end |
#message ⇒ Object (readonly)
Returns the value of attribute message
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def @message end |
#occurred_at ⇒ Object (readonly)
Returns the value of attribute occurred_at
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def occurred_at @occurred_at end |
#policy_key ⇒ Object (readonly)
Returns the value of attribute policy_key
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def policy_key @policy_key end |
#recorded_at_by_server ⇒ Object (readonly)
Returns the value of attribute recorded_at_by_server
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def recorded_at_by_server @recorded_at_by_server end |
#statement_keys ⇒ Object (readonly)
Returns the value of attribute statement_keys
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def statement_keys @statement_keys end |
#status ⇒ Object (readonly)
Returns the value of attribute status
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def status @status end |
#unknown ⇒ Object (readonly)
Returns the value of attribute unknown
46 47 48 |
# File 'lib/clickwrap/import/legacy.rb', line 46 def unknown @unknown end |
Instance Method Details
#already_imported? ⇒ Boolean
50 |
# File 'lib/clickwrap/import/legacy.rb', line 50 def already_imported? = status == :already_imported |
#event_id ⇒ Object
54 |
# File 'lib/clickwrap/import/legacy.rb', line 54 def event_id = event&.id |
#imported? ⇒ Boolean
49 |
# File 'lib/clickwrap/import/legacy.rb', line 49 def imported? = status == :imported |
#planned? ⇒ Boolean
51 |
# File 'lib/clickwrap/import/legacy.rb', line 51 def planned? = status == :planned |
#receipt ⇒ Object
53 |
# File 'lib/clickwrap/import/legacy.rb', line 53 def receipt = event && Receipt.new(event) |
#to_s ⇒ Object
55 |
# File 'lib/clickwrap/import/legacy.rb', line 55 def to_s = |
#written? ⇒ Boolean
52 |
# File 'lib/clickwrap/import/legacy.rb', line 52 def written? = !event.nil? |