Class: TimestampMaker::TimeZoneLookupers::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/timestamp_maker/time_zone_lookupers/mock.rb

Instance Method Summary collapse

Constructor Details

#initialize(time_zone) ⇒ Mock

Returns a new instance of Mock.



6
7
8
# File 'lib/timestamp_maker/time_zone_lookupers/mock.rb', line 6

def initialize(time_zone)
  @time_zone = time_zone
end

Instance Method Details

#lookupObject



10
11
12
# File 'lib/timestamp_maker/time_zone_lookupers/mock.rb', line 10

def lookup(*)
  @time_zone
end