Class: AwsKeychain::Plugin::Json
- Inherits:
-
Object
- Object
- AwsKeychain::Plugin::Json
- Defined in:
- lib/plugins/json/aws_keychain_plugin_json.rb
Instance Method Summary collapse
- #actions ⇒ Object
-
#initialize(options = {}) ⇒ Json
constructor
A new instance of Json.
- #short_name ⇒ Object
- #show(key) {|JSON.pretty_generate(key)| ... } ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Json
Returns a new instance of Json.
27 28 29 |
# File 'lib/plugins/json/aws_keychain_plugin_json.rb', line 27 def initialize(={}) end |
Instance Method Details
#actions ⇒ Object
31 32 33 |
# File 'lib/plugins/json/aws_keychain_plugin_json.rb', line 31 def actions ["show"] end |
#short_name ⇒ Object
35 36 37 |
# File 'lib/plugins/json/aws_keychain_plugin_json.rb', line 35 def short_name "json" end |
#show(key) {|JSON.pretty_generate(key)| ... } ⇒ Object
39 40 41 |
# File 'lib/plugins/json/aws_keychain_plugin_json.rb', line 39 def show(key, &block) yield JSON.pretty_generate(key) end |