Module: SBF::Client::User::ProviderType

Defined in:
lib/stbaldricks/entities/user.rb

Constant Summary collapse

SBF =
'sbf'.freeze
FACEBOOK =
'facebook'.freeze
TWITTER =
'twitter'.freeze
IDS =

rubocop:disable Style/MutableConstant

{
  SBF => 1,
  FACEBOOK => 2,
  TWITTER => 3
}

Class Method Summary collapse

Class Method Details

.to_s(type_id) ⇒ Object



42
43
44
# File 'lib/stbaldricks/entities/user.rb', line 42

def self.to_s(type_id)
  IDS.key(type_id)
end

.value_of(type) ⇒ Object



46
47
48
# File 'lib/stbaldricks/entities/user.rb', line 46

def self.value_of(type)
  IDS[type]
end