class PhraseApp::RequestParams::AuthorizationParams

AuthorizationParams

Parameters:

expires_at

Expiration date for the authorization token. Null means no expiration date (default).

note

A note to help you remember what the access is used for.

scopes

A list of scopes that the access can be used for.

Public Instance Methods

expires_at=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 487
def expires_at=(val)
  super(DateTime.parse(val))
end
note=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 491
def note=(val)
  super(val)
end
scopes=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 495
def scopes=(val)
  super(val.split(','))
end
validate() click to toggle source
# File lib/phraseapp-ruby.rb, line 499
def validate
  
  if note == nil || note == "" 
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"note\" of \"AuthorizationParams\" not set")
  end
end