Exception: Virgil::SDK::Client::VirgilClient::InvalidCardException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/virgil/sdk/client/virgil_client.rb

Overview

Exception raised when card is not valid

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(invalid_cards) ⇒ InvalidCardException

Returns a new instance of InvalidCardException



54
55
56
# File 'lib/virgil/sdk/client/virgil_client.rb', line 54

def initialize(invalid_cards)
  @invalid_cards = invalid_cards
end

Instance Attribute Details

#invalid_cardsObject (readonly)

Returns the value of attribute invalid_cards



52
53
54
# File 'lib/virgil/sdk/client/virgil_client.rb', line 52

def invalid_cards
  @invalid_cards
end

Instance Method Details

#to_sObject



58
59
60
# File 'lib/virgil/sdk/client/virgil_client.rb', line 58

def to_s
  "Cards #{@invalid_cards} are not valid"
end