Module: GenesisRuby::Api::Mixins::Requests::Financial::Business::FurnitureAttributes
- Included in:
- BusinessAttributes
- Defined in:
- lib/genesis_ruby/api/mixins/requests/financial/business/furniture_attributes.rb
Overview
Mixin Furniture Attributes
Instance Attribute Summary collapse
-
#business_name_of_the_supplier ⇒ Object
Returns the value of attribute business_name_of_the_supplier.
Instance Method Summary collapse
-
#business_date_of_order ⇒ Object
The date when order was placed.
-
#business_date_of_order=(value) ⇒ Object
The date when order was placed.
-
#business_delivery_date ⇒ Object
Date of the expected delivery.
-
#business_delivery_date=(value) ⇒ Object
Date of the expected delivery.
Instance Attribute Details
#business_name_of_the_supplier ⇒ Object
Returns the value of attribute business_name_of_the_supplier.
12 13 14 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/furniture_attributes.rb', line 12 def business_name_of_the_supplier @business_name_of_the_supplier end |
Instance Method Details
#business_date_of_order ⇒ Object
The date when order was placed
15 16 17 18 19 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/furniture_attributes.rb', line 15 def business_date_of_order @business_date_of_order&.strftime( GenesisRuby::Api::Constants::DateTimeFormats::DD_MM_YYYY_L_HYPHENS ) end |
#business_date_of_order=(value) ⇒ Object
The date when order was placed
22 23 24 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/furniture_attributes.rb', line 22 def business_date_of_order=(value) parse_date attribute: __method__, value: value, allow_empty: true end |
#business_delivery_date ⇒ Object
Date of the expected delivery
27 28 29 30 31 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/furniture_attributes.rb', line 27 def business_delivery_date @business_delivery_date&.strftime( GenesisRuby::Api::Constants::DateTimeFormats::DD_MM_YYYY_L_HYPHENS ) end |
#business_delivery_date=(value) ⇒ Object
Date of the expected delivery
34 35 36 |
# File 'lib/genesis_ruby/api/mixins/requests/financial/business/furniture_attributes.rb', line 34 def business_delivery_date=(value) parse_date attribute: __method__, value: value, allow_empty: true end |