Class: AtlasEngine::Types::AddressValidation::AddressInput

Inherits:
GraphQL::Schema::InputObject
  • Object
show all
Extended by:
T::Sig
Includes:
AddressValidation::AbstractAddress, LogHelper
Defined in:
app/graphql/atlas_engine/types/address_validation/address_input.rb

Constant Summary

Constants included from AddressValidation::AbstractAddress

AddressValidation::AbstractAddress::ComponentType

Class Method Summary collapse

Instance Method Summary collapse

Methods included from AddressValidation::AbstractAddress

#[], #address1, #address2, #city, #context, #country_code, #keys, #line2, #neighborhood, #phone, #province_code, #street_name, #street_number, #to_h, #zip

Methods included from LogHelper

#log_error, #log_info, #log_warn

Class Method Details

.from_hash(hash) ⇒ Object



43
44
45
46
47
48
49
50
# File 'app/graphql/atlas_engine/types/address_validation/address_input.rb', line 43

def from_hash(hash)
  new(
    nil,
    ruby_kwargs: hash,
    context: nil,
    defaults_used: nil,
  )
end

Instance Method Details

#marshal_dumpObject



27
28
29
# File 'app/graphql/atlas_engine/types/address_validation/address_input.rb', line 27

def marshal_dump
  to_kwargs
end

#marshal_load(hash) ⇒ Object



32
33
34
# File 'app/graphql/atlas_engine/types/address_validation/address_input.rb', line 32

def marshal_load(hash)
  @ruby_style_hash = T.let(hash, T.nilable(T::Hash[T.untyped, T.untyped]))
end