Module: Explicit::Type::Modifiers::AuthType

Extended by:
AuthType
Included in:
AuthType
Defined in:
lib/explicit/type/modifiers/auth_type.rb

Instance Method Summary collapse

Instance Method Details

#apply(auth_type, type) ⇒ Object



6
7
8
9
10
# File 'lib/explicit/type/modifiers/auth_type.rb', line 6

def apply(auth_type, type)
  Explicit::Type.build(type).tap do |type|
    type.auth_type = auth_type
  end
end