Method: ProcessOut::CardInformation#to_json

Defined in:
lib/processout/card_information.rb

#to_json(options) ⇒ Object

Overrides the JSON marshaller to only send the fields we want



72
73
74
75
76
77
78
79
80
81
82
# File 'lib/processout/card_information.rb', line 72

def to_json(options)
  {
      "iin": self.iin,
      "scheme": self.scheme,
      "type": self.type,
      "bank_name": self.bank_name,
      "brand": self.brand,
      "category": self.category,
      "country": self.country,
  }.to_json
end