Sha256: 1fe9d433e3fa748a88618787bdde94ebc1b251f8d31e38c4e64e7b173ec3e22e

Contents?: true

Size: 811 Bytes

Versions: 492

Compression:

Stored size: 811 Bytes

Contents

require_relative 'tunes_base'
module Spaceship
  module Tunes
    class B2bUser < TunesBase
      # @return (Bool) add the user to b2b list
      attr_accessor :add

      # @return (Bool) delete the user to b2b list
      attr_accessor :delete

      # @return (String) b2b username
      attr_accessor :ds_username

      attr_mapping(
        'value.add' => :add,
        'value.delete' => :delete,
        'value.dsUsername' => :ds_username
      )

      def self.from_username(username, is_add_type: true)
        self.new({ 'value' => { 'add' => is_add_type, 'delete' => !is_add_type, 'dsUsername' => username } })
      end

      # equality check for the two objects
      def ==(other)
        add == other.add && delete == other.delete && ds_username == other.ds_username
      end
    end
  end
end

Version data entries

492 entries across 492 versions & 5 rubygems

Version Path
fastlane-2.225.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.224.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.223.1 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.223.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.222.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.221.1 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.221.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.220.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.219.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.218.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-security-patched-2.216.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.217.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.216.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.215.1 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.215.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-mercafacil-2.214.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.214.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.213.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.212.2 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane_pricing_fix-2.212.1 spaceship/lib/spaceship/tunes/b2b_user.rb