Class: CouchShell::CommandInfo
- Inherits:
-
Object
- Object
- CouchShell::CommandInfo
- Defined in:
- lib/couch-shell/plugin.rb
Instance Attribute Summary collapse
-
#doc_line ⇒ Object
readonly
Returns the value of attribute doc_line.
-
#doc_text ⇒ Object
readonly
Returns the value of attribute doc_text.
-
#execute_message ⇒ Object
readonly
Returns the value of attribute execute_message.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#plugin ⇒ Object
readonly
Returns the value of attribute plugin.
-
#synopsis ⇒ Object
readonly
Returns the value of attribute synopsis.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(opts) ⇒ CommandInfo
constructor
A new instance of CommandInfo.
Constructor Details
#initialize(opts) ⇒ CommandInfo
Returns a new instance of CommandInfo.
49 50 51 52 53 54 55 56 57 |
# File 'lib/couch-shell/plugin.rb', line 49 def initialize(opts) @name = opts[:name] or raise "name required" @tags = [@name].concat(opts[:tags] || []) @synopsis = opts[:synopsis] @doc_line = opts[:doc_line] or raise "doc_line required" @doc_text = opts[:doc_text] @execute_message = opts[:execute_message] or raise "execute_message required" @plugin = opts[:plugin] or raise "plugin required" end |
Instance Attribute Details
#doc_line ⇒ Object (readonly)
Returns the value of attribute doc_line.
44 45 46 |
# File 'lib/couch-shell/plugin.rb', line 44 def doc_line @doc_line end |
#doc_text ⇒ Object (readonly)
Returns the value of attribute doc_text.
45 46 47 |
# File 'lib/couch-shell/plugin.rb', line 45 def doc_text @doc_text end |
#execute_message ⇒ Object (readonly)
Returns the value of attribute execute_message.
46 47 48 |
# File 'lib/couch-shell/plugin.rb', line 46 def @execute_message end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
41 42 43 |
# File 'lib/couch-shell/plugin.rb', line 41 def name @name end |
#plugin ⇒ Object (readonly)
Returns the value of attribute plugin.
47 48 49 |
# File 'lib/couch-shell/plugin.rb', line 47 def plugin @plugin end |
#synopsis ⇒ Object (readonly)
Returns the value of attribute synopsis.
43 44 45 |
# File 'lib/couch-shell/plugin.rb', line 43 def synopsis @synopsis end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
42 43 44 |
# File 'lib/couch-shell/plugin.rb', line 42 def @tags end |