Class: PhraseApp::AuthorizationParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::AuthorizationParams
- Defined in:
- lib/phraseapp-ruby.rb
Instance Method Summary collapse
-
#note=(val) ⇒ Object
:note, :scopes,.
- #scopes=(val) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#note=(val) ⇒ Object
:note, :scopes,
278 279 280 |
# File 'lib/phraseapp-ruby.rb', line 278 def note=(val) self.note = val end |
#scopes=(val) ⇒ Object
282 283 284 |
# File 'lib/phraseapp-ruby.rb', line 282 def scopes=(val) self.scopes = val.split(',') end |
#validate ⇒ Object
286 287 288 289 290 |
# File 'lib/phraseapp-ruby.rb', line 286 def validate if self.note == nil || self.note == "" raise PhraseApp::ParamsValidationError.new("Required parameter \"note\" of \"AuthorizationParams\" not set") end end |