Class: Razorpay::Dispute

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

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

.accept(id, options = {}) ⇒ Object



18
19
20
# File 'lib/razorpay/dispute.rb', line 18

def self.accept(id, options={})
   request.post "#{id}/accept", options
end

.all(options = {}) ⇒ Object



14
15
16
# File 'lib/razorpay/dispute.rb', line 14

def self.all(options = {})
   request.all options
end

.contest(id, options) ⇒ Object



22
23
24
# File 'lib/razorpay/dispute.rb', line 22

def self.contest(id, options)
   request.patch "#{id}/contest", options
end

.fetch(id) ⇒ Object



10
11
12
# File 'lib/razorpay/dispute.rb', line 10

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

.requestObject



6
7
8
# File 'lib/razorpay/dispute.rb', line 6

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