2022-01-27 17:42:47 +01:00
|
|
|
class CheckReport
|
2023-02-26 15:09:08 +01:00
|
|
|
include ActiveModel::API
|
|
|
|
include ActiveModel::Attributes
|
2022-01-27 17:42:47 +01:00
|
|
|
|
2023-02-26 15:09:08 +01:00
|
|
|
attribute :hostname, :string
|
|
|
|
attribute :date, :datetime, default: -> { Time.now }
|
|
|
|
attribute :checks, array: true
|
2022-01-27 17:42:47 +01:00
|
|
|
end
|