Class: Bearclaws::Charge

Inherits:
Object
  • Object
show all
Defined in:
lib/bearclaws/charge.rb

Overview

A representation of a charge

Instance Method Summary collapse

Constructor Details

#initialize(charge = []) ⇒ Charge

Returns a new instance of Charge.

Parameters:

  • charge (Array) (defaults to: [])

    a CSV row from an AWS cost allocation report



11
12
13
14
15
# File 'lib/bearclaws/charge.rb', line 11

def initialize(charge = [])
  Bearclaws::AWSMAP.each { |k, v|
    send "#{k}=", charge[v]
  }
end