Class: DayOffs::Sources::Base
- Inherits:
-
Object
- Object
- DayOffs::Sources::Base
- Extended by:
- DSL
- Defined in:
- lib/day_offs/sources/base.rb
Instance Attribute Summary collapse
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#year ⇒ Object
readonly
Returns the value of attribute year.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(year, country) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(year, country) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/day_offs/sources/base.rb', line 8 def initialize(year, country) @year = year @country = country end |
Instance Attribute Details
#country ⇒ Object (readonly)
Returns the value of attribute country.
6 7 8 |
# File 'lib/day_offs/sources/base.rb', line 6 def country @country end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
6 7 8 |
# File 'lib/day_offs/sources/base.rb', line 6 def year @year end |
Class Method Details
.call(year, country) ⇒ Object
18 19 20 |
# File 'lib/day_offs/sources/base.rb', line 18 def call(year, country) new(year, country).call end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/day_offs/sources/base.rb', line 13 def call raise DayOffs::Sources::Errors::UnimplementedMethodError end |