Module: GenesisRuby::Api::Mixins::Requests::Financial::Business::HotelsAndRealEstateRentalsAttributes
- Included in:
- BusinessAttributes
- Defined in:
- lib/genesis_ruby/api/mixins/requests/financial/business/hotels_and_real_estate_rentals_attributes.rb
Overview
Mixin Hotels and Real Estate Rentals Attributes
Instance Attribute Summary collapse
-
#business_travel_agency_name ⇒ Object
Returns the value of attribute business_travel_agency_name.
Instance Method Summary collapse
-
#business_check_in_date ⇒ Object
The data when the customer check-in.
-
#business_check_in_date=(value) ⇒ Object
The data when the customer check-in.
-
#business_check_out_date ⇒ Object
The data when the customer check-out.
-
#business_check_out_date=(value) ⇒ Object
The data when the customer check-out.
Instance Attribute Details
#business_travel_agency_name ⇒ Object
Returns the value of attribute business_travel_agency_name.
12 13 14 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/hotels_and_real_estate_rentals_attributes.rb', line 12 def business_travel_agency_name @business_travel_agency_name end |
Instance Method Details
#business_check_in_date ⇒ Object
The data when the customer check-in
15 16 17 18 19 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/hotels_and_real_estate_rentals_attributes.rb', line 15 def business_check_in_date @business_check_in_date&.strftime( GenesisRuby::Api::Constants::DateTimeFormats::DD_MM_YYYY_L_HYPHENS ) end |
#business_check_in_date=(value) ⇒ Object
The data when the customer check-in
22 23 24 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/hotels_and_real_estate_rentals_attributes.rb', line 22 def business_check_in_date=(value) parse_date attribute: __method__, value: value, allow_empty: true end |
#business_check_out_date ⇒ Object
The data when the customer check-out
27 28 29 30 31 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/hotels_and_real_estate_rentals_attributes.rb', line 27 def business_check_out_date @business_check_out_date&.strftime( GenesisRuby::Api::Constants::DateTimeFormats::DD_MM_YYYY_L_HYPHENS ) end |
#business_check_out_date=(value) ⇒ Object
The data when the customer check-out
34 35 36 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/hotels_and_real_estate_rentals_attributes.rb', line 34 def business_check_out_date=(value) parse_date attribute: __method__, value: value, allow_empty: true end |