Class: Razorpay::Card

Inherits:
Entity
  • Object
show all
Defined in:
lib/razorpay/card.rb

Overview

Card API allows you to fetch cards saved with Razorpay Docs: docs.razorpay.com/v1/page/cards

Instance Attribute Summary

Attributes inherited from Entity

#attributes

Class Method Summary collapse

Methods inherited from Entity

#initialize, #method_missing, #respond_to_missing?, #to_json, #with_a_bang

Constructor Details

This class inherits a constructor from Razorpay::Entity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Razorpay::Entity

Class Method Details

.fetch(id) ⇒ Object



13
14
15
# File 'lib/razorpay/card.rb', line 13

def self.fetch(id)
  request.fetch id
end

.requestObject



9
10
11
# File 'lib/razorpay/card.rb', line 9

def self.request
  Razorpay::Request.new('cards')
end