9 lines
203 B
Ruby
9 lines
203 B
Ruby
class CheckReport
|
|
include ActiveModel::API
|
|
include ActiveModel::Attributes
|
|
|
|
attribute :hostname, :string
|
|
attribute :date, :datetime, default: -> { Time.now }
|
|
attribute :checks, array: true
|
|
end
|