class Formulary::HtmlForm::Fields::WeekInput

Public Class Methods

compatible_type() click to toggle source
# File lib/formulary/html_form/fields/week_input.rb, line 3
def self.compatible_type
  "week"
end

Public Instance Methods

datetime_format() click to toggle source
# File lib/formulary/html_form/fields/week_input.rb, line 11
def datetime_format
  "%Y-W%U"
end
display_format() click to toggle source
# File lib/formulary/html_form/fields/week_input.rb, line 7
def display_format
  "YYYY-W##"
end