Module: XeroCLI::Helper
- Included in:
- Options
- Defined in:
- lib/xero_cli/helper.rb
Instance Method Summary collapse
Instance Method Details
#money_in_cents(string_amount) ⇒ Object
3 4 5 6 |
# File 'lib/xero_cli/helper.rb', line 3 def money_in_cents(string_amount) return if string_amount.nil? (string_amount.to_f * 100).to_i end |
#parse_datetime(option) ⇒ Object
8 9 10 |
# File 'lib/xero_cli/helper.rb', line 8 def parse_datetime(option) DateTime.parse(option) if option end |