Class: XHP::HealthPlanet::OAuth::Scope
- Inherits:
-
Object
- Object
- XHP::HealthPlanet::OAuth::Scope
- Defined in:
- lib/xhp.rb
Instance Method Summary collapse
-
#initialize(innerscan = true, sphygmomanometer = true, pedometer = true, smug = true) ⇒ Scope
constructor
A new instance of Scope.
- #to_s ⇒ Object
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_s ⇒ Object
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 |