class NikeV2::ExperienceType
Constants
- TO_KEY_MAP
- TO_S_MAP
Public Class Methods
code_from_string(string)
click to toggle source
# File lib/nike_v2/experience_type.rb, line 23 def self.code_from_string(string) TO_KEY_MAP[string] end
new(code)
click to toggle source
# File lib/nike_v2/experience_type.rb, line 11 def initialize(code) @code = code end
Public Instance Methods
code()
click to toggle source
# File lib/nike_v2/experience_type.rb, line 15 def code @code end
to_s()
click to toggle source
# File lib/nike_v2/experience_type.rb, line 19 def to_s TO_S_MAP[code.downcase] end