Class: AwsInventory::Presenter::Base
- Inherits:
-
Object
- Object
- AwsInventory::Presenter::Base
- Defined in:
- lib/aws_inventory/presenters/base.rb
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(options, data) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options, data) ⇒ Base
Returns a new instance of Base.
2 3 4 5 |
# File 'lib/aws_inventory/presenters/base.rb', line 2 def initialize(, data) = @data = data end |
Instance Method Details
#data ⇒ Object
7 8 9 |
# File 'lib/aws_inventory/presenters/base.rb', line 7 def data [:header] ? @data : @data[1..-1] # remove the header row end |