Sha256: c29458fe90767b731d1efa061ef4a88d146563b13cf9eebf031fab3e61986bba
Contents?: true
Size: 566 Bytes
Versions: 38
Compression:
Stored size: 566 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(filter: {}, includes: nil, limit: 180, sort: nil) resps = Spaceship::ConnectAPI.get_territories(filter: {}, includes: nil, limit: nil, sort: nil).all_pages return resps.flat_map(&:to_models) end end end end
Version data entries
38 entries across 38 versions & 1 rubygems