Class: WhopSDK::Models::App::APIKey
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::App::APIKey
- Defined in:
- lib/whop_sdk/models/app.rb,
sig/whop_sdk/models/app.rbs
Overview
Instance Attribute Summary collapse
-
#created_at ⇒ Time
The datetime the private api key was created.
-
#id ⇒ String
The unique identifier for the private api key.
-
#token ⇒ String
This is the API key used to authenticate requests.
Instance Method Summary collapse
-
#initialize ⇒ APIKey
constructor
A new instance of APIKey.
- #to_hash ⇒ { id: String, token: String, created_at: Time }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ APIKey
Returns a new instance of APIKey.
148 |
# File 'sig/whop_sdk/models/app.rbs', line 148
def initialize: (id: String, token: String, created_at: Time) -> void
|
Instance Attribute Details
#created_at ⇒ Time
The datetime the private api key was created.
261 |
# File 'lib/whop_sdk/models/app.rb', line 261 required :created_at, Time |
#id ⇒ String
The unique identifier for the private api key.
249 |
# File 'lib/whop_sdk/models/app.rb', line 249 required :id, String |
#token ⇒ String
This is the API key used to authenticate requests
255 |
# File 'lib/whop_sdk/models/app.rb', line 255 required :token, String |
Instance Method Details
#to_hash ⇒ { id: String, token: String, created_at: Time }
150 |
# File 'sig/whop_sdk/models/app.rbs', line 150
def to_hash: -> { id: String, token: String, created_at: Time }
|