Class: Rbnotes::Statistics::StatisticValue
- Inherits:
-
Object
- Object
- Rbnotes::Statistics::StatisticValue
- Defined in:
- lib/rbnotes/statistics.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
Instance Method Summary collapse
-
#initialize(timestamp, text) ⇒ StatisticValue
constructor
A new instance of StatisticValue.
- #mon ⇒ Object
- #year ⇒ Object
Constructor Details
#initialize(timestamp, text) ⇒ StatisticValue
Returns a new instance of StatisticValue.
86 87 88 89 |
# File 'lib/rbnotes/statistics.rb', line 86 def initialize(, text) @timestamp = @lines = text.size end |
Instance Attribute Details
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
84 85 86 |
# File 'lib/rbnotes/statistics.rb', line 84 def lines @lines end |
Instance Method Details
#mon ⇒ Object
95 96 97 |
# File 'lib/rbnotes/statistics.rb', line 95 def mon @timestamp[:mon] end |
#year ⇒ Object
91 92 93 |
# File 'lib/rbnotes/statistics.rb', line 91 def year @timestamp[:year] end |