Class: Xively::Command::Base
- Inherits:
-
Object
- Object
- Xively::Command::Base
- Defined in:
- lib/xively-cli/command/base.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = [], options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(args = [], options = {}) ⇒ Base
Returns a new instance of Base.
13 14 15 16 |
# File 'lib/xively-cli/command/base.rb', line 13 def initialize(args=[], ={}) @args = args @options = end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
10 11 12 |
# File 'lib/xively-cli/command/base.rb', line 10 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/xively-cli/command/base.rb', line 11 def @options end |
Class Method Details
.namespace ⇒ Object
6 7 8 |
# File 'lib/xively-cli/command/base.rb', line 6 def self.namespace self.to_s.split("::").last.downcase end |