Sha256: cd0352c6ba9b653436e594efeadd26afa6ce61c11f87b794f837446b3186ada7

Contents?: true

Size: 617 Bytes

Versions: 8

Compression:

Stored size: 617 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)
        self.new({ 'value' => { 'add' => true, 'delete' => false, 'dsUsername' => username } })
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fastlane-2.98.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.97.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.96.1 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.96.0 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.96.0.beta.20180521050117 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.96.0.beta.20180520050019 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.96.0.beta.20180519050103 spaceship/lib/spaceship/tunes/b2b_user.rb
fastlane-2.96.0.beta.20180518050116 spaceship/lib/spaceship/tunes/b2b_user.rb