~singpolyma/sgx-jmp

470beb31e1df72eaeb9a5e84bd24b3fba893cdf0 — Stephen Paul Weber 1 year, 9 months ago 4486e59
Trust level Olympias
1 files changed, 22 insertions(+), 0 deletions(-)

M lib/trust_level.rb
M lib/trust_level.rb => lib/trust_level.rb +22 -0
@@ 93,6 93,28 @@ module TrustLevel
		end
	end

	class Olympias
		TrustLevel.register do |manual:, **|
			new if manual == "Olympias"
		end

		def support_call?(*)
			true
		end

		def send_message?(*)
			true
		end

		def credit_card_transaction?(*)
			true
		end

		def to_s
			"Olympias"
		end
	end

	class Customer
		TrustLevel.register do |manual:, plan_name:, **|
			if manual && manual != "Customer"