Class: Zaikio::Procurement::Supplier

Inherits:
Base
  • Object
show all
Defined in:
lib/zaikio/procurement/supplier.rb

Class Method Summary collapse

Class Method Details

.upcomingObject



6
7
8
9
10
11
# File 'lib/zaikio/procurement/supplier.rb', line 6

def self.upcoming
  result = Zaikio::Procurement::Supplier
           .request(:get, "upcoming_suppliers")&.body&.dig("data")

  result.collect { |s| Zaikio::Procurement::Supplier.new(s) }
end