Class: Workarea::FlowIo::BogusClient::Experiences

Inherits:
Object
  • Object
show all
Defined in:
lib/workarea/flow_io/bogus_client/experiences.rb

Instance Method Summary collapse

Instance Method Details

#get(_organization_id) ⇒ Object



5
6
7
# File 'lib/workarea/flow_io/bogus_client/experiences.rb', line 5

def get(_organization_id)
  [canada_experience, canada_2_experience, china_experience, europe_experience]
end

#get_by_key(_organization_id, key) ⇒ Object

Parameters:

  • organization_id (String)
  • key (String)


12
13
14
15
16
17
18
19
20
# File 'lib/workarea/flow_io/bogus_client/experiences.rb', line 12

def get_by_key(_organization_id, key)
  case key
  when "canada" then canada_experience
  when "canada2" then canada_2_experience
  when "china" then china_experience
  when "europe" then europe_experience
  else europe_experience
  end
end