Class: WellKnown

Inherits:
ApplicationRecord show all
Defined in:
app/models/well_known.rb

Constant Summary collapse

CONTENT_TYPES =
{
  text: "text/plain",
  json: "application/json",
}.freeze

Instance Method Summary collapse

Instance Method Details

#formatObject



18
19
20
# File 'app/models/well_known.rb', line 18

def format
  content_type.to_sym
end

#to_sObject



22
23
24
# File 'app/models/well_known.rb', line 22

def to_s
  name
end