Class: XHP::HealthPlanet::OAuth::Scope

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

Instance Method Summary collapse

Constructor Details

#initialize(innerscan = true, sphygmomanometer = true, pedometer = true, smug = true) ⇒ Scope

Returns a new instance of Scope.



43
44
45
# File 'lib/xhp.rb', line 43

def initialize(innerscan = true, sphygmomanometer = true, pedometer = true, smug = true)
  @innerscan, @sphygmomanometer, @pedometer, @smug = innerscan, sphygmomanometer, pedometer, smug
end

Instance Method Details

#to_sObject



47
48
49
50
51
52
53
54
# File 'lib/xhp.rb', line 47

def to_s
  a = []
  a << 'innerscan' if @innerscan
  a << 'sphygmomanometer' if @sphygmomanometer
  a << 'pedometer' if @pedometer
  a << 'smug' if @smug
  a.join(',')
end