Class: Cadenya::Types::CredentialAPIKey
- Inherits:
-
Object
- Object
- Cadenya::Types::CredentialAPIKey
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_key: nil) ⇒ CredentialAPIKey
constructor
A new instance of CredentialAPIKey.
- #to_h ⇒ Object
Constructor Details
#initialize(api_key: nil) ⇒ CredentialAPIKey
Returns a new instance of CredentialAPIKey.
2065 2066 2067 |
# File 'lib/cadenya/types.rb', line 2065 def initialize(api_key: nil) @api_key = api_key end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
2063 2064 2065 |
# File 'lib/cadenya/types.rb', line 2063 def api_key @api_key end |
Class Method Details
.from_json(data) ⇒ Object
2069 2070 2071 2072 2073 |
# File 'lib/cadenya/types.rb', line 2069 def self.from_json(data) new( api_key: data["apiKey"], ) end |