Module: WirecardMapper::Model::Base::ClassMethods

Defined in:
lib/wirecardmapper/models/base.rb

Instance Method Summary collapse

Instance Method Details

#entity_id(entity_id = nil) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/wirecardmapper/models/base.rb', line 16

def entity_id(entity_id = nil)
  if entity_id.present?
    @entity_id = entity_id
  else
    @entity_id
  end
end

#product_id(product_id = nil) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/wirecardmapper/models/base.rb', line 8

def product_id(product_id = nil)
  if product_id.present?
    @product_id = product_id
  else
    @product_id
  end
end