Class: FakeSNS::Response

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/fake_sns/response.rb

Instance Method Summary collapse

Instance Method Details

#request_idObject



7
8
9
# File 'lib/fake_sns/response.rb', line 7

def request_id
  @request_id ||= SecureRandom.uuid
end

#templateObject



11
12
13
# File 'lib/fake_sns/response.rb', line 11

def template
  __getobj__.class.name.to_s.split("::").last.gsub(/[A-Z]/){|m| "_#{m[0].downcase}"}.sub(/_/, '')
end