Sha256: d1a1599069364d489511536ce3ede336abf84b2d5e1b8dc8d9262f38c475d5fd

Contents?: true

Size: 1.61 KB

Versions: 3

Compression:

Stored size: 1.61 KB

Contents

require_relative '../Helpers/jso_nable'
require_relative '../Entities/validation_error'
class CustomerResponse < JSONable

  def initialize(h = nil)

    if(h != nil)

      h.each {
          |k,v|

        propNameFormatted = k.to_s + "="

        if(CustomerResponse.instance_methods(false).include?(propNameFormatted.to_sym))
          public_send("#{k}=",v)
        end

      }

    end

  end

  def ValidationErrors=(validationErrors) #ValidationError type
    @validationErrors = validationErrors
  end

  def IsSuccess=(isSuccess)
    @isSuccess = isSuccess
  end

  def ResponseSummary=(responseSummary)
    @responseSummary = responseSummary
  end

  def ResponseCode=(responseCode)
    @responseCode = responseCode
  end

  def CustomerId=(customerId)
    @customerId = customerId
  end

  def CustomerToken=(customerToken)
    @customerToken = customerToken
  end

  def UniqueIdentification=(uniqueIdentification)
    @uniqueIdentification = uniqueIdentification
  end


  #Getters
  def getValidationErrors
    return @validationErrors
  end

  def getIsSuccess
    return @isSuccess
  end

  def getResponseSummary
    return @responseSummary
  end

  def getResponseCode
    return @responseCode
  end

  def getCustomerId
    return @customerId
  end

  def getCustomerToken
    return @customerToken
  end

  def getUniqueIdentification
    return @uniqueIdentification
  end

  #private ValidationError ValidationErrors;
  #private boolean IsSuccess;
  #private String ResponseSummary;
  #private String ResponseCode;
  #private String CustomerId;
  #private String CustomerToken;
  #private String UniqueIdentification;#

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
CroemincRubyGem-0.1.2 lib/Entities/customer_response.rb
MetropagoRubyGem-0.1.1 lib/Entities/customer_response.rb
MetropagoRubyGem-0.1.0 lib/Entities/customer_response.rb