Sha256: f4f48e261eae295f1709d820ed9325eceefd0004b1108b53e89b0cff84163622

Contents?: true

Size: 719 Bytes

Versions: 49

Compression:

Stored size: 719 Bytes

Contents

module GoTransverseTractApi

  module Order

    class AgreementConfiguration

      def self.get_agreement_conf agreement_conf
        {
          nextAgreement: agreement_conf[:next_agreement],
          nextServiceProduct: agreement_conf[:next_service_product],
          nextServiceProductPrice: agreement_conf[:next_service_product_price],
          endDate: agreement_conf[:end_date],
          endAction: agreement_conf[:end_action],
          nextEndAction: agreement_conf[:next_end_action],
          preserveServicePrice: agreement_conf[:preserve_service_price],
          nextPreserveServicePrice: agreement_conf[:next_preserve_service_price]
        }.delete_if{|k,v| v.nil?}
      end

    end

  end

end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.6.5 lib/gotransverse-tract-api/order/agreement_configuration.rb
gotransverse-tract-api-0.6.4 lib/gotransverse-tract-api/order/agreement_configuration.rb
gotransverse-tract-api-0.6.3 lib/gotransverse-tract-api/order/agreement_configuration.rb
gotransverse-tract-api-0.6.2 lib/gotransverse-tract-api/order/agreement_configuration.rb
gotransverse-tract-api-0.6.1 lib/gotransverse-tract-api/order/agreement_configuration.rb
gotransverse-tract-api-0.6.0 lib/gotransverse-tract-api/order/agreement_configuration.rb
gotransverse-tract-api-0.5.3 lib/gotransverse-tract-api/order/agreement_configuration.rb
gotransverse-tract-api-0.5.2 lib/gotransverse-tract-api/order/agreement_configuration.rb
gotransverse-tract-api-0.5.1 lib/gotransverse-tract-api/order/agreement_configuration.rb