Class: BooticCli::Themes::ItemWithTime

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/bootic_cli/themes/api_theme.rb

Direct Known Subclasses

APIAsset

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



11
12
13
14
# File 'lib/bootic_cli/themes/api_theme.rb', line 11

def ==(other)
  # puts "Comparing with time #{self.updated_on} vs #{other.updated_on}"
  self.updated_on.to_i == other.updated_on.to_i
end

#updated_onObject



7
8
9
# File 'lib/bootic_cli/themes/api_theme.rb', line 7

def updated_on
  Time.parse(super)
end