module FindByHandleWithNumber

Use FindByHandleWithNumber when the SOAP action to find entity requires `Number` to be passed rather than the default `Id`

Public Instance Methods

find(handle) click to toggle source
Calls superclass method
# File lib/economic/proxies/actions/find_by_handle_with_number.rb, line 6
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