Class: DataCatalog::About

Inherits:
Base
  • Object
show all
Defined in:
lib/resources/about.rb

Class Method Summary collapse

Methods inherited from Base

_first, check_status, cursor, error, filterize, filterize_hash, http_delete, http_get, http_post, http_put, one, query_hash

Class Method Details

.getObject



7
8
9
# File 'lib/resources/about.rb', line 7

def self.get()
  one(http_get("/"))
end

.version_at_least?(minimum) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
14
15
# File 'lib/resources/about.rb', line 11

def self.version_at_least?(minimum)
  actual = VersionString.new(get.version)
  floor = VersionString.new(minimum)
  actual >= floor
end