Module: GenesisRuby::Api::Mixins::Requests::BirthDateAttributes

Overview

Birth Date Attributes mixin

Instance Method Summary collapse

Instance Method Details

#birth_dateObject

Birth Date Accessor



11
12
13
# File 'lib/genesis_ruby/api/mixins/requests/birth_date_attributes.rb', line 11

def birth_date
  @birth_date&.strftime GenesisRuby::Api::Constants::DateTimeFormats::DD_MM_YYYY_L_HYPHENS
end

#birth_date=(value) ⇒ Object

Birth Date Accessor



16
17
18
# File 'lib/genesis_ruby/api/mixins/requests/birth_date_attributes.rb', line 16

def birth_date=(value)
  parse_date attribute: __method__, value: value, allow_empty: true
end