Class: Atlasq::Command::Usage

Inherits:
Base
  • Object
show all
Defined in:
lib/atlasq/command/usage.rb

Instance Attribute Summary

Attributes inherited from Base

#search_terms

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, run

Constructor Details

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

Class Method Details

.to_pager?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/atlasq/command/usage.rb', line 9

def self.to_pager?
  false
end

Instance Method Details

#contentString

Returns:

  • (String)


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/atlasq/command/usage.rb', line 14

def content
  <<~USAGE
    atlasq -- a utility to query country info

    usage:
      atlasq query...
      atlasq [command] query...
      atlasq -h/--help
      atlasq -v/--version

    commands:
      -c/--country : find countries
      -r/--region  : find countries by region
      -m/--money   : find countries by currency
  USAGE
end