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.



46
47
48
# File 'lib/virgil/sdk/client/virgil_client.rb', line 46

def initialize(invalid_cards)
  @invalid_cards = invalid_cards
end

Instance Attribute Details

#invalid_cardsObject (readonly)

Returns the value of attribute invalid_cards.



44
45
46
# File 'lib/virgil/sdk/client/virgil_client.rb', line 44

def invalid_cards
  @invalid_cards
end

Instance Method Details

#to_sObject



50
51
52
# File 'lib/virgil/sdk/client/virgil_client.rb', line 50

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