class Iyzi::PkiBuilders::SubMerchant

Constants

CREATE_ATTRIBUTES_ORDER
RETREIVE_ATTRIBUTE_ORDER
UPDATE_ATTRIBUTE_ORDER

Public Class Methods

new(type, values = {}) click to toggle source
Calls superclass method Iyzi::PkiBuilder::new
# File lib/iyzi/pki_builders/sub_merchant.rb, line 45
def initialize(type, values = {})
  super(values, order_for(type))
end

Public Instance Methods

order_for(type) click to toggle source
# File lib/iyzi/pki_builders/sub_merchant.rb, line 49
def order_for(type)
  case type
  when :create
    CREATE_ATTRIBUTES_ORDER
  when :update
    UPDATE_ATTRIBUTE_ORDER
  when :retreive
    RETREIVE_ATTRIBUTE_ORDER
  else
    raise "no attribute order for #{type}"
  end
end