class Paymongo::SuccessfulResult

Attributes

transaction[R]

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/paymongo/successful_result.rb, line 5
def initialize(attributes = {})
  @attrs = attributes.keys
  attributes.each { |key, value| instance_variable_set("@#{key}", value) }
end

Public Instance Methods

inspect() click to toggle source
# File lib/paymongo/successful_result.rb, line 10
def inspect
  inspected_attributes =
    @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" }
  "#<#{self.class} #{inspected_attributes.join(' ')}>"
end
success?() click to toggle source
# File lib/paymongo/successful_result.rb, line 16
def success?
  true
end