Class: XeroCLI::Commands
- Inherits:
-
Object
- Object
- XeroCLI::Commands
- Defined in:
- lib/xero_cli/commands.rb
Defined Under Namespace
Classes: Accounts, Balance, Base, Receive, Spend, Transfer
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#xero ⇒ Object
readonly
Returns the value of attribute xero.
Instance Method Summary collapse
-
#initialize(options, xero) ⇒ Commands
constructor
A new instance of Commands.
- #perform ⇒ Object
Constructor Details
#initialize(options, xero) ⇒ Commands
Returns a new instance of Commands.
5 6 7 8 |
# File 'lib/xero_cli/commands.rb', line 5 def initialize(, xero) @options = @xero = xero end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/xero_cli/commands.rb', line 3 def @options end |
#xero ⇒ Object (readonly)
Returns the value of attribute xero.
3 4 5 |
# File 'lib/xero_cli/commands.rb', line 3 def xero @xero end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/xero_cli/commands.rb', line 10 def perform help if .help set_guid if .set_guid show_guid if .show_guid show_accounts if .show_accounts get_guid if .get_guid spend if .spend receive if .receive transfer if .transfer balance if .balance default end |