Sha256: 35cb41f9d39780b1eb7afba174465848409ffe6fe2b4bffa1e874a20428c2e64
Contents?: true
Size: 605 Bytes
Versions: 88
Compression:
Stored size: 605 Bytes
Contents
require_relative '../model' module Spaceship class ConnectAPI class Territory include Spaceship::ConnectAPI::Model attr_accessor :currency attr_mapping({ "currency" => "currency" }) def self.type return "territories" end # # API # def self.all(client: nil, filter: {}, includes: nil, limit: 180, sort: nil) client ||= Spaceship::ConnectAPI resps = client.get_territories(filter: {}, includes: nil, limit: nil, sort: nil).all_pages return resps.flat_map(&:to_models) end end end end
Version data entries
88 entries across 88 versions & 4 rubygems