Class: USaidWat::Service::MockService

Inherits:
Object
  • Object
show all
Defined in:
lib/usaidwat/service.rb

Instance Method Summary collapse

Instance Method Details

#user(username) ⇒ Object



34
35
36
37
38
39
# File 'lib/usaidwat/service.rb', line 34

def user(username)
  USaidWat::Thing::User.new(username,
                            load_data("user_#{username}.json"),
                            load_data("#{username}.json"),
                            load_data("submissions_#{username}.json"))
end