lib/apia/argument_set.rb
# This is a constant that represents a missing value where `nil` means
# the user actually wanted to send null/nil.
This is a constant that represents a missing value where `nil` means
the user actually wanted to send null/nil.
This is a constant that represents a missing value where ` nil ` means the user actually wanted to send null / nil .
def lookup_value(hash, key, argument, request)
      if hash.key?(key.to_s)
        hash[key.to_s]
      elsif hash.key?(key.to_sym)
        hash[key.to_sym]
      else
        route_value = value_from_route(argument, request)
        return route_value unless route_value.is_a?(MissingValue)
        return argument.default unless argument.default.nil?
        MissingValue.singleton
      end
    end
def lookup_value ( hash , key , argument , request ) if hash . key? ( key . to_s ) hash [ key . to_s ] elsif hash . key? ( key . to_sym ) hash [ key . to_sym ] else route_value = value_from_route ( argument , request ) return route_value unless route_value . is_a? ( MissingValue ) return argument . default unless argument . default . nil? MissingValue . singleton end end
This is a constant that represents a missing value where `nil` means
the user actually wanted to send null/nil.
This is a constant that represents a missing value where ` nil ` means the user actually wanted to send null / nil .
hash
<not_specific>
key
<not_specific>
argument
<not_specific>
request
<not_specific>