Class: PhraseApp::RequestParams::AuthorizationParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::AuthorizationParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
AuthorizationParams
Parameters:
- expires_at
-
expires_at
- note
-
note
- scopes
-
scopes
Instance Method Summary collapse
Instance Method Details
#expires_at=(val) ⇒ Object
305 306 307 |
# File 'lib/phraseapp-ruby.rb', line 305 def expires_at=(val) self.expires_at = Time.parse(val) end |
#note=(val) ⇒ Object
309 310 311 |
# File 'lib/phraseapp-ruby.rb', line 309 def note=(val) self.note = val end |
#scopes=(val) ⇒ Object
313 314 315 |
# File 'lib/phraseapp-ruby.rb', line 313 def scopes=(val) self.scopes = val.split(',') end |
#validate ⇒ Object
317 318 319 320 321 |
# File 'lib/phraseapp-ruby.rb', line 317 def validate if self.note == nil || self.note == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"note\" of \"AuthorizationParams\" not set") end end |