Sha256: 8dc9cf9bd0fc01a1ee094022acf3950aaf73a8f13db5a2223275a12e26219784

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

module RailsLiveDashboard
  class Exception < Entry
    attribute :content, Types::ExceptionContent.new

    scope :of_class, ->(exception_class) { where("content->>'class' = ?", exception_class) }

    def class_name
      content.class
    end

    def message
      content.message
    end

    def occurrences
      content.occurrences
    end

    def file
      content.file
    end

    def line
      content.line
    end

    def backtrace
      content.backtrace
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_live_dashboard-0.2.0 app/models/rails_live_dashboard/exception.rb
rails_live_dashboard-0.1.2 app/models/rails_live_dashboard/exception.rb
rails_live_dashboard-0.1.1 app/models/rails_live_dashboard/exception.rb
rails_live_dashboard-0.1.0 app/models/rails_live_dashboard/exception.rb