Class: Low::Types::Status

Inherits:
Integer
  • Object
show all
Extended by:
ComplexType
Defined in:
lib/types/status.rb

Overview

Status is an Integer for basic type checking…

Defined Under Namespace

Classes: StatusCode

Class Method Summary collapse

Methods included from ComplexType

match?

Class Method Details

.[](status_code) ⇒ Object

…but becomes an instance of StatusCode when called with “Status” for advanced type checking (status + code).



13
14
15
# File 'lib/types/status.rb', line 13

def self.[](status_code)
  @status_code = StatusCode.new(status_code)
end