Class: Xively::Command::Version

Inherits:
Base
  • Object
show all
Defined in:
lib/xively-cli/command/version.rb

Overview

display version

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize, namespace

Constructor Details

This class inherits a constructor from Xively::Command::Base

Instance Method Details

#indexObject

version

show xively client version

Example:

$ xively version v0.0.1



17
18
19
20
21
# File 'lib/xively-cli/command/version.rb', line 17

def index
  validate_arguments!

  puts(Xively::VERSION)
end