Class: Heirloom::CLI::Formatter::Catalog
- Inherits:
-
Object
- Object
- Heirloom::CLI::Formatter::Catalog
- Defined in:
- lib/heirloom/cli/formatter/catalog.rb
Instance Method Summary collapse
- #detailed_format(args) ⇒ Object
-
#initialize(args) ⇒ Catalog
constructor
A new instance of Catalog.
- #summary_format(args) ⇒ Object
Constructor Details
#initialize(args) ⇒ Catalog
Returns a new instance of Catalog.
6 7 8 |
# File 'lib/heirloom/cli/formatter/catalog.rb', line 6 def initialize(args) @catalog = args[:catalog] end |
Instance Method Details
#detailed_format(args) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/heirloom/cli/formatter/catalog.rb', line 10 def detailed_format(args) @name = args[:name] @region = args[:region] filter_by_name details end |
#summary_format(args) ⇒ Object
18 19 20 21 22 |
# File 'lib/heirloom/cli/formatter/catalog.rb', line 18 def summary_format(args) @region = args[:region] summary end |