Class: Chimpactions::List::Stats
- Inherits:
-
Object
- Object
- Chimpactions::List::Stats
- Includes:
- Utility
- Defined in:
- lib/chimpactions/list.rb
Overview
The Stats class is a simple wrapper for statistics about the List. my_list.stats.subscriber_total #=> 243
Instance Method Summary collapse
-
#data ⇒ Object
The raw data array of statistic info.
-
#initialize(raw) ⇒ Stats
constructor
A new instance of Stats.
Methods included from Utility
Constructor Details
#initialize(raw) ⇒ Stats
Returns a new instance of Stats.
100 101 102 103 |
# File 'lib/chimpactions/list.rb', line 100 def initialize(raw) @raw = raw self end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Chimpactions::Utility
Instance Method Details
#data ⇒ Object
The raw data array of statistic info.
106 107 108 |
# File 'lib/chimpactions/list.rb', line 106 def data @raw end |