Skip to content

Add Reload Function #25

Description

@jrusso1020

Currently our implementation only allows users to get new information based on changes in Newgistics by performing the same query again so something like

original_shipment = Newgistics::Shipment.where(id: 'R577274665').first

described_class.cancel_box(payload)

updated_shipment = Newgistics::Shipment.where(id: 'R577274665').first

expect(updated_shipment.shipment_status).to eq('CANCELED')

With this proposed change we would add in the reload function to our models so that we can perform the following instead of having to query Newgistics again ourselves explicitly

original_shipment = Newgistics::Shipment.where(id: 'R577274665').first

described_class.cancel_box(payload)

expect(original_shipment.reload.shipment_status).to eq('CANCELED')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions