Class: CloudCostTracker::Tracker
- Inherits:
-
Object
- Object
- CloudCostTracker::Tracker
- Extended by:
- Forwardable
- Defined in:
- lib/cloud_cost_tracker/tracker.rb
Overview
Tracks the resources in one or more Fog accounts in an ActiveRecord database
Instance Attribute Summary collapse
-
#accounts ⇒ Object
readonly
Returns the value of attribute accounts.
Instance Method Summary collapse
-
#initialize(accounts = {}, options = {}) ⇒ Tracker
constructor
Creates an object for tracking Fog accounts in an ActiveRecord database.
Constructor Details
#initialize(accounts = {}, options = {}) ⇒ Tracker
Creates an object for tracking Fog accounts in an ActiveRecord database
21 22 23 24 25 26 |
# File 'lib/cloud_cost_tracker/tracker.rb', line 21 def initialize(accounts = {}, ={}) @delay = [:delay] @log = [:logger] || FogTracker.default_logger @running = false @accounts = setup_fog_tracker(accounts) end |
Instance Attribute Details
#accounts ⇒ Object (readonly)
Returns the value of attribute accounts.
12 13 14 |
# File 'lib/cloud_cost_tracker/tracker.rb', line 12 def accounts @accounts end |