Class: Cadenya::Types::RotateChallengeTokenResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/cadenya/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(challenge_token: nil) ⇒ RotateChallengeTokenResponse

Returns a new instance of RotateChallengeTokenResponse.



4900
4901
4902
# File 'lib/cadenya/types.rb', line 4900

def initialize(challenge_token: nil)
  @challenge_token = challenge_token
end

Instance Attribute Details

#challenge_tokenObject (readonly)

Returns the value of attribute challenge_token.



4898
4899
4900
# File 'lib/cadenya/types.rb', line 4898

def challenge_token
  @challenge_token
end

Class Method Details

.from_json(data) ⇒ Object



4904
4905
4906
4907
4908
# File 'lib/cadenya/types.rb', line 4904

def self.from_json(data)
  new(
    challenge_token: data["challengeToken"],
  )
end

Instance Method Details

#to_hObject



4910
4911
4912
4913
4914
# File 'lib/cadenya/types.rb', line 4910

def to_h
  {
    challenge_token: Util.plain(@challenge_token),
  }.reject { |_k, v| v.nil? }
end