Exception: LMC::OutdatedTermsOfUseException

Inherits:
ResponseException show all
Defined in:
lib/lmc/exceptions/lmc_outdated_terms_of_use_exception.rb

Instance Method Summary collapse

Methods inherited from ResponseException

#initialize, #message

Constructor Details

This class inherits a constructor from LMC::ResponseException

Instance Method Details

#missingObject



14
15
16
# File 'lib/lmc/exceptions/lmc_outdated_terms_of_use_exception.rb', line 14

def missing
  @response['details']['missing']
end

#responseObject



5
6
7
8
9
10
11
12
# File 'lib/lmc/exceptions/lmc_outdated_terms_of_use_exception.rb', line 5

def response
  r = "Terms of use must be accepted before using this LMC instance:\n"
  missing.each do |tos|
    r += "Name: #{tos['name']}, Date #{tos['acceptance']}\n"

  end
  r
end