esp-idf-lib/devtools/spec/license.rb@66aeab4ed38d
esp-idf-lib/devtools/spec/license.rb
Thu, 06 Apr 2023 20:53:06 +0200
- author
- Michiel Broek <mbroek@mbse.eu>
- date
- Thu, 06 Apr 2023 20:53:06 +0200
- changeset 19
- 66aeab4ed38d
- parent 1
-
1c9894662795
- permissions
- -rw-r--r--
Set the new measured deep sleep current consumption. This is half of the Wemos D1 system.
# 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