Class: Vacuum::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/vacuum/resource.rb

Overview

Resources determine what information will be returned in the API response

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#allArray<String> (readonly)

Returns:

  • (Array<String>)


54
55
56
# File 'lib/vacuum/resource.rb', line 54

def self.all
  ALL
end

Class Method Details

.allArray<String>

Returns:

  • (Array<String>)


54
55
56
# File 'lib/vacuum/resource.rb', line 54

def self.all
  ALL
end

.valid?(resource) ⇒ Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/vacuum/resource.rb', line 58

def self.valid?(resource)
  ALL.include?(resource)
end