Class: TwitterCldr::Shared::DayPeriods::Rule
- Inherits:
-
Object
- Object
- TwitterCldr::Shared::DayPeriods::Rule
- Defined in:
- lib/twitter_cldr/shared/day_periods.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, params) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(name, params) ⇒ Rule
Returns a new instance of Rule.
40 41 42 43 |
# File 'lib/twitter_cldr/shared/day_periods.rb', line 40 def initialize(name, params) @name = name @params = params end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
38 39 40 |
# File 'lib/twitter_cldr/shared/day_periods.rb', line 38 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
38 39 40 |
# File 'lib/twitter_cldr/shared/day_periods.rb', line 38 def params @params end |