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

Version Path
fastlane-2.167.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.166.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.165.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.164.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.163.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.162.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.161.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.160.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.159.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.158.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.157.4 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.157.3 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.157.2 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.157.1 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.157.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.156.1 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.156.0 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.155.3 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.155.2 spaceship/lib/spaceship/connect_api/models/territory.rb
fastlane-2.155.1 spaceship/lib/spaceship/connect_api/models/territory.rb