Class: RakeAudit::Adapters::ExecutionRecord

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def arguments
  @arguments
end

#duration_msObject

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def duration_ms
  @duration_ms
end

#error_classObject

Returns the value of attribute error_class

Returns:

  • (Object)

    the current value of error_class



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def error_class
  @error_class
end

#error_messageObject

Returns the value of attribute error_message

Returns:

  • (Object)

    the current value of error_message



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def error_message
  @error_message
end

#finished_atObject

Returns the value of attribute finished_at

Returns:

  • (Object)

    the current value of finished_at



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def finished_at
  @finished_at
end

#hostnameObject

Returns the value of attribute hostname

Returns:

  • (Object)

    the current value of hostname



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def hostname
  @hostname
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def id
  @id
end

#pidObject

Returns the value of attribute pid

Returns:

  • (Object)

    the current value of pid



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def pid
  @pid
end

#rails_envObject

Returns the value of attribute rails_env

Returns:

  • (Object)

    the current value of rails_env



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def rails_env
  @rails_env
end

#ruby_versionObject

Returns the value of attribute ruby_version

Returns:

  • (Object)

    the current value of ruby_version



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def ruby_version
  @ruby_version
end

#started_atObject

Returns the value of attribute started_at

Returns:

  • (Object)

    the current value of started_at



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def started_at
  @started_at
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



9
10
11
# File 'lib/rake_audit/adapters/execution_record.rb', line 9

def status
  @status
end

#task_nameObject

Returns the value of attribute task_name

Returns:

  • (Object)

    the current value of 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_paramObject



15
16
17
# File 'lib/rake_audit/adapters/execution_record.rb', line 15

def to_param
  id.to_s
end