Class: Booth::Requests::Ip
- Inherits:
-
Object
- Object
- Booth::Requests::Ip
- Includes:
- Calls
- Defined in:
- lib/booth/requests/ip.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/booth/requests/ip.rb', line 11 def call check = ::Booth::Syntaxes::Ip.call(raw_ip) check.on_success { return check.normalized_ip } raise ArgumentError, "Invalid IP: #{raw_ip.inspect}" if raise_if_invalid check end |