class Spaceship::Tunes::B2bUser

Attributes

add[RW]

@return (Bool) add the user to b2b list

delete[RW]

@return (Bool) delete the user to b2b list

ds_username[RW]

@return (String) b2b username

Public Class Methods

from_username(username, is_add_type: true) click to toggle source
# File spaceship/lib/spaceship/tunes/b2b_user.rb, line 20
def self.from_username(username, is_add_type: true)
  self.new({ 'value' => { 'add' => is_add_type, 'delete' => !is_add_type, 'dsUsername' => username } })
end

Public Instance Methods

==(other) click to toggle source

equality check for the two objects

# File spaceship/lib/spaceship/tunes/b2b_user.rb, line 25
def ==(other)
  add == other.add && delete == other.delete && ds_username == other.ds_username
end