Sha256: 1fe9d433e3fa748a88618787bdde94ebc1b251f8d31e38c4e64e7b173ec3e22e
Contents?: true
Size: 811 Bytes
Versions: 493
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
493 entries across 493 versions & 5 rubygems