Module: Gera::DirectionSupport
- Included in:
- DirectionRate, ExchangeRate
- Defined in:
- app/models/concerns/gera/direction_support.rb
Instance Method Summary collapse
Instance Method Details
#direction ⇒ Object
10 11 12 |
# File 'app/models/concerns/gera/direction_support.rb', line 10 def direction ::Gera::Direction.new(ps_from: payment_system_from, ps_to: payment_system_to).freeze end |
#direction=(value) ⇒ Object
5 6 7 8 |
# File 'app/models/concerns/gera/direction_support.rb', line 5 def direction=(value) self.payment_system_from = value.payment_system_from self.payment_system_to = value.payment_system_to end |