Class: StytchB2B::SCIM::Connection::GetRequestOptions
- Inherits:
-
Object
- Object
- StytchB2B::SCIM::Connection::GetRequestOptions
- Defined in:
- lib/stytch/b2b_scim.rb
Instance Attribute Summary collapse
-
#authorization ⇒ Object
Optional authorization object.
Instance Method Summary collapse
-
#initialize(authorization: nil) ⇒ GetRequestOptions
constructor
A new instance of GetRequestOptions.
- #to_headers ⇒ Object
Constructor Details
#initialize(authorization: nil) ⇒ GetRequestOptions
Returns a new instance of GetRequestOptions.
162 163 164 165 166 |
# File 'lib/stytch/b2b_scim.rb', line 162 def initialize( authorization: nil ) @authorization = end |
Instance Attribute Details
#authorization ⇒ Object
Optional authorization object. Pass in an active Stytch Member session token or session JWT and the request will be run using that member’s permissions.
160 161 162 |
# File 'lib/stytch/b2b_scim.rb', line 160 def @authorization end |
Instance Method Details
#to_headers ⇒ Object
168 169 170 171 172 |
# File 'lib/stytch/b2b_scim.rb', line 168 def to_headers headers = {} headers.merge!(@authorization.to_headers) if headers end |