Class: Cadenya::Types::AccountInfo
- Inherits:
-
Object
- Object
- Cadenya::Types::AccountInfo
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#challenge_token ⇒ Object
readonly
Returns the value of attribute challenge_token.
-
#webhook_events_hmac_secret ⇒ Object
readonly
Returns the value of attribute webhook_events_hmac_secret.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(webhook_events_hmac_secret: nil, challenge_token: nil) ⇒ AccountInfo
constructor
A new instance of AccountInfo.
- #to_h ⇒ Object
Constructor Details
#initialize(webhook_events_hmac_secret: nil, challenge_token: nil) ⇒ AccountInfo
Returns a new instance of AccountInfo.
224 225 226 227 |
# File 'lib/cadenya/types.rb', line 224 def initialize(webhook_events_hmac_secret: nil, challenge_token: nil) @webhook_events_hmac_secret = webhook_events_hmac_secret @challenge_token = challenge_token end |
Instance Attribute Details
#challenge_token ⇒ Object (readonly)
Returns the value of attribute challenge_token.
222 223 224 |
# File 'lib/cadenya/types.rb', line 222 def challenge_token @challenge_token end |
#webhook_events_hmac_secret ⇒ Object (readonly)
Returns the value of attribute webhook_events_hmac_secret.
222 223 224 |
# File 'lib/cadenya/types.rb', line 222 def webhook_events_hmac_secret @webhook_events_hmac_secret end |
Class Method Details
.from_json(data) ⇒ Object
229 230 231 232 233 234 |
# File 'lib/cadenya/types.rb', line 229 def self.from_json(data) new( webhook_events_hmac_secret: data["webhookEventsHmacSecret"], challenge_token: data["challengeToken"], ) end |