class Beaver::PaymentsCaptureRequest
PaymentsCaptureRequest
Model.
Attributes
amounts[RW]
TODO: Write general description for this method @return [CaptureAmounts]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/payments_capture_request.rb, line 25 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. amounts = CaptureAmounts.from_hash(hash['amounts']) if hash['amounts'] # Create object from extracted values. PaymentsCaptureRequest.new(amounts) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/payments_capture_request.rb, line 14 def self.names @_hash = {} if @_hash.nil? @_hash['amounts'] = 'amounts' @_hash end
new(amounts = nil)
click to toggle source
# File lib/beaver/models/payments_capture_request.rb, line 20 def initialize(amounts = nil) @amounts = amounts end