Class: OAuth2::AccessToken
- Inherits:
-
Object
- Object
- OAuth2::AccessToken
- Defined in:
- sig/lib/oauth2/oauth2.rbs
Instance Attribute Summary collapse
-
#client ⇒ Client
readonly
Attributes.
-
#expires_at ⇒ Integer?
readonly
Returns the value of attribute expires_at.
-
#expires_in ⇒ Object
readonly
Returns the value of attribute expires_in.
-
#expires_latency ⇒ Object
readonly
Returns the value of attribute expires_latency.
-
#options ⇒ Hash[Symbol, untyped]
Returns the value of attribute options.
-
#params ⇒ Hash[untyped, untyped]
readonly
Returns the value of attribute params.
-
#refresh_token ⇒ String?
Returns the value of attribute refresh_token.
-
#response ⇒ Object
Returns the value of attribute response.
-
#token ⇒ String
readonly
Returns the value of attribute token.
Instance Method Summary collapse
- #[] ⇒ Object
- #delete {|arg0| ... } ⇒ Object
- #expired? ⇒ Boolean
- #expires? ⇒ Boolean
- #get {|arg0| ... } ⇒ Object
- #headers ⇒ Hash[String, String]
-
#initialize ⇒ AccessToken
constructor
Instance Methods.
- #patch {|arg0| ... } ⇒ Object
- #post {|arg0| ... } ⇒ Object
- #put {|arg0| ... } ⇒ Object
- #refresh ⇒ AccessToken
- #request {|arg0| ... } ⇒ Object
- #to_hash ⇒ Hash[untyped, untyped]
Constructor Details
#initialize ⇒ AccessToken
Instance Methods
19 |
# File 'sig/lib/oauth2/oauth2.rbs', line 19 def initialize: (Client, String, ?Hash[Symbol, untyped]) -> void |
Instance Attribute Details
#client ⇒ Client (readonly)
Attributes
8 9 10 |
# File 'sig/lib/oauth2/oauth2.rbs', line 8 def client @client end |
#expires_at ⇒ Integer? (readonly)
Returns the value of attribute expires_at.
11 12 13 |
# File 'sig/lib/oauth2/oauth2.rbs', line 11 def expires_at @expires_at end |
#expires_in ⇒ Object (readonly)
Returns the value of attribute expires_in.
10 11 12 |
# File 'sig/lib/oauth2/oauth2.rbs', line 10 def expires_in @expires_in end |
#expires_latency ⇒ Object (readonly)
Returns the value of attribute expires_latency.
12 13 14 |
# File 'sig/lib/oauth2/oauth2.rbs', line 12 def expires_latency @expires_latency end |
#options ⇒ Hash[Symbol, untyped]
Returns the value of attribute options.
14 15 16 |
# File 'sig/lib/oauth2/oauth2.rbs', line 14 def end |
#params ⇒ Hash[untyped, untyped] (readonly)
Returns the value of attribute params.
13 14 15 |
# File 'sig/lib/oauth2/oauth2.rbs', line 13 def params @params end |
#refresh_token ⇒ String?
Returns the value of attribute refresh_token.
15 16 17 |
# File 'sig/lib/oauth2/oauth2.rbs', line 15 def refresh_token @refresh_token end |
#response ⇒ Object
Returns the value of attribute response.
16 17 18 |
# File 'sig/lib/oauth2/oauth2.rbs', line 16 def response @response end |
#token ⇒ String (readonly)
Returns the value of attribute token.
9 10 11 |
# File 'sig/lib/oauth2/oauth2.rbs', line 9 def token @token end |
Instance Method Details
#[] ⇒ Object
21 |
# File 'sig/lib/oauth2/oauth2.rbs', line 21 def []: (String) -> untyped |
#delete {|arg0| ... } ⇒ Object
41 |
# File 'sig/lib/oauth2/oauth2.rbs', line 41 def delete: (String, ?Hash[Symbol, untyped]) { (untyped) -> untyped } -> untyped |
#expired? ⇒ Boolean
25 |
# File 'sig/lib/oauth2/oauth2.rbs', line 25 def expired?: () -> bool |
#expires? ⇒ Boolean
23 |
# File 'sig/lib/oauth2/oauth2.rbs', line 23 def expires?: () -> bool |
#get {|arg0| ... } ⇒ Object
33 |
# File 'sig/lib/oauth2/oauth2.rbs', line 33 def get: (String, ?Hash[Symbol, untyped]) { (untyped) -> untyped } -> untyped |
#headers ⇒ Hash[String, String]
43 |
# File 'sig/lib/oauth2/oauth2.rbs', line 43 def headers: () -> Hash[String, String] |
#patch {|arg0| ... } ⇒ Object
39 |
# File 'sig/lib/oauth2/oauth2.rbs', line 39 def patch: (String, ?Hash[Symbol, untyped]) { (untyped) -> untyped } -> untyped |
#post {|arg0| ... } ⇒ Object
35 |
# File 'sig/lib/oauth2/oauth2.rbs', line 35 def post: (String, ?Hash[Symbol, untyped]) { (untyped) -> untyped } -> untyped |
#put {|arg0| ... } ⇒ Object
37 |
# File 'sig/lib/oauth2/oauth2.rbs', line 37 def put: (String, ?Hash[Symbol, untyped]) { (untyped) -> untyped } -> untyped |
#refresh ⇒ AccessToken
27 |
# File 'sig/lib/oauth2/oauth2.rbs', line 27 def refresh: (?Hash[Symbol, untyped], ?Hash[Symbol, untyped]) -> AccessToken |
#request {|arg0| ... } ⇒ Object
31 |
# File 'sig/lib/oauth2/oauth2.rbs', line 31 def request: (Symbol, String, ?Hash[Symbol, untyped]) { (untyped) -> untyped } -> untyped |
#to_hash ⇒ Hash[untyped, untyped]
29 |
# File 'sig/lib/oauth2/oauth2.rbs', line 29 def to_hash: () -> Hash[untyped, untyped] |