Class: VagrantPlugins::Rimu::Actions::BillingMethods
- Inherits:
-
AbstractAction
- Object
- AbstractAction
- VagrantPlugins::Rimu::Actions::BillingMethods
- Includes:
- Commands::Utils
- Defined in:
- lib/vagrant-rimu/actions/billing_methods.rb
Instance Method Summary collapse
- #execute(env) ⇒ Object
-
#initialize(app, _env) ⇒ BillingMethods
constructor
A new instance of BillingMethods.
Methods included from Commands::Utils
Methods inherited from AbstractAction
Constructor Details
#initialize(app, _env) ⇒ BillingMethods
Returns a new instance of BillingMethods.
10 11 12 |
# File 'lib/vagrant-rimu/actions/billing_methods.rb', line 10 def initialize(app, _env) @app = app end |
Instance Method Details
#execute(env) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/vagrant-rimu/actions/billing_methods.rb', line 14 def execute(env) rows = [] env[:rimu_api].billing_methods.each do |b| rows << [b.billing_oid, b.billing_method_type, b.description] end display_table(env, ['ID', 'Type', 'Description'], rows) @app.call(env) end |