Class: CanIUse

Inherits:
Object
  • Object
show all
Defined in:
lib/can_i_use.rb,
lib/can_i_use/feature.rb,
lib/can_i_use/browser.rb,
lib/can_i_use/version.rb,
lib/can_i_use/user_agent.rb,
lib/can_i_use/browser_version.rb

Defined Under Namespace

Classes: Browser, BrowserVersion, Feature, UserAgent

Constant Summary collapse

CANIUSE_DATA =
JSON.parse(
  File.read(
    File.join(
      [File.dirname(__FILE__), '..', 'vendor/caniuse/data.json']
    )
  )
)
VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.updated_atObject


19
20
21
# File 'lib/can_i_use.rb', line 19

def self.updated_at
  Time.at(CANIUSE_DATA['updated'].to_i).utc
end