Sha256: fe78475035dfc9ca77288185cc9d8d1c0daa366f60898c49a866738fd4cba6cd

Contents?: true

Size: 364 Bytes

Versions: 3

Compression:

Stored size: 364 Bytes

Contents

# Use FindByHandleWithNumber when the SOAP action to find entity requires
# `Number` to be passed rather than the default `Id`
module FindByHandleWithNumber
  def find(handle)
    handle = if handle.respond_to?(:to_i)
      Economic::Entity::Handle.build(:number => handle)
    else
      Economic::Entity::Handle.build(handle)
    end
    super(handle)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rconomic-0.7.0 lib/economic/proxies/actions/find_by_handle_with_number.rb
rconomic-0.6.1 lib/economic/proxies/actions/find_by_handle_with_number.rb
rconomic-0.6.0 lib/economic/proxies/actions/find_by_handle_with_number.rb