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

Version Path
fastlane-2.226.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.225.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.224.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.223.1 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.223.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.222.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.221.1 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.221.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.220.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.219.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.218.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-security-patched-2.216.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.217.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.216.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.215.1 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.215.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-mercafacil-2.214.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.214.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.213.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.212.2 spaceship/lib/spaceship/connect_api/models/territory.rb