Class: RakeAudit::Adapters::ExecutionRecord
- Inherits:
-
Struct
- Object
- Struct
- RakeAudit::Adapters::ExecutionRecord
- Defined in:
- lib/rake_audit/adapters/execution_record.rb
Overview
Read-side value object returned by non-ActiveRecord adapters.
Carries every field the Web UI views access plus an id and to_param so Rails route helpers (+execution_path(record)+) work without AR.
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#error_class ⇒ Object
Returns the value of attribute error_class.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#finished_at ⇒ Object
Returns the value of attribute finished_at.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#id ⇒ Object
Returns the value of attribute id.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#rails_env ⇒ Object
Returns the value of attribute rails_env.
-
#ruby_version ⇒ Object
Returns the value of attribute ruby_version.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#task_name ⇒ Object
Returns the value of attribute task_name.
Instance Method Summary collapse
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def arguments @arguments end |
#duration_ms ⇒ Object
Returns the value of attribute duration_ms
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def duration_ms @duration_ms end |
#error_class ⇒ Object
Returns the value of attribute error_class
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def error_class @error_class end |
#error_message ⇒ Object
Returns the value of attribute error_message
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def @error_message end |
#finished_at ⇒ Object
Returns the value of attribute finished_at
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def finished_at @finished_at end |
#hostname ⇒ Object
Returns the value of attribute hostname
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def hostname @hostname end |
#id ⇒ Object
Returns the value of attribute id
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def id @id end |
#pid ⇒ Object
Returns the value of attribute pid
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def pid @pid end |
#rails_env ⇒ Object
Returns the value of attribute rails_env
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def rails_env @rails_env end |
#ruby_version ⇒ Object
Returns the value of attribute ruby_version
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def ruby_version @ruby_version end |
#started_at ⇒ Object
Returns the value of attribute started_at
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def started_at @started_at end |
#status ⇒ Object
Returns the value of attribute status
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def status @status end |
#task_name ⇒ Object
Returns the value of attribute task_name
9 10 11 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 9 def task_name @task_name end |
Instance Method Details
#to_param ⇒ Object
15 16 17 |
# File 'lib/rake_audit/adapters/execution_record.rb', line 15 def to_param id.to_s end |