Class: DayOffs::Sources::Base

Inherits:
Object
  • Object
show all
Extended by:
DSL
Defined in:
lib/day_offs/sources/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#countryObject (readonly)

Returns the value of attribute country.



6
7
8
# File 'lib/day_offs/sources/base.rb', line 6

def country
  @country
end

#yearObject (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

#callObject



13
14
15
# File 'lib/day_offs/sources/base.rb', line 13

def call
  raise DayOffs::Sources::Errors::UnimplementedMethodError
end