esp-idf-lib/devtools/spec/license.rb@5bd5f6668f71
esp-idf-lib/devtools/spec/license.rb
Mon, 17 Apr 2023 16:53:38 +0200
- author
- Michiel Broek <mbroek@mbse.eu>
- date
- Mon, 17 Apr 2023 16:53:38 +0200
- changeset 33
- 5bd5f6668f71
- parent 1
-
1c9894662795
- permissions
- -rw-r--r--
Removed all BLE code. It is not usefull in this application.
# frozen_string_literal: true
class License
def initialize(hash)
raise ArgumentError, "missing key `name`" unless hash.key?("name")
@metadata = hash
end
def name
@metadata["name"]
end
def to_s
name
end
end