Class: Drumknott::Keys
- Inherits:
-
Object
- Object
- Drumknott::Keys
- Defined in:
- lib/drumknott/keys.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(arguments) ⇒ Keys
constructor
A new instance of Keys.
Constructor Details
#initialize(arguments) ⇒ Keys
Returns a new instance of Keys.
6 7 8 |
# File 'lib/drumknott/keys.rb', line 6 def initialize(arguments) @name, @key, ignored = *arguments end |
Class Method Details
.call(arguments) ⇒ Object
2 3 4 |
# File 'lib/drumknott/keys.rb', line 2 def self.call(arguments) new(arguments).call end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 |
# File 'lib/drumknott/keys.rb', line 10 def call File.write '.drumknott', JSON.generate( 'name' => name, 'key' => key ) end |