Class: Appwrite::Models::Oauth2PAR
- Inherits:
-
Object
- Object
- Appwrite::Models::Oauth2PAR
- Defined in:
- lib/appwrite/models/oauth2_par.rb
Instance Attribute Summary collapse
-
#expires_in ⇒ Object
readonly
Returns the value of attribute expires_in.
-
#request_uri ⇒ Object
readonly
Returns the value of attribute request_uri.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(request_uri:, expires_in:) ⇒ Oauth2PAR
constructor
A new instance of Oauth2PAR.
- #to_map ⇒ Object
Constructor Details
#initialize(request_uri:, expires_in:) ⇒ Oauth2PAR
Returns a new instance of Oauth2PAR.
9 10 11 12 13 14 15 |
# File 'lib/appwrite/models/oauth2_par.rb', line 9 def initialize( request_uri:, expires_in: ) @request_uri = request_uri @expires_in = expires_in end |
Instance Attribute Details
#expires_in ⇒ Object (readonly)
Returns the value of attribute expires_in.
7 8 9 |
# File 'lib/appwrite/models/oauth2_par.rb', line 7 def expires_in @expires_in end |
#request_uri ⇒ Object (readonly)
Returns the value of attribute request_uri.
6 7 8 |
# File 'lib/appwrite/models/oauth2_par.rb', line 6 def request_uri @request_uri end |
Class Method Details
Instance Method Details
#to_map ⇒ Object
24 25 26 27 28 29 |
# File 'lib/appwrite/models/oauth2_par.rb', line 24 def to_map { "request_uri": @request_uri, "expires_in": @expires_in } end |