Class: EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/e_invoice_api/models/lookup_retrieve_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(dns_records: , sml_hostname: , status: , error: nil) ⇒ Object

Information about the DNS lookup performed

Parameters:

  • dns_records (Array<EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord>) (defaults to: )

    List of DNS records found for the Peppol participant

  • sml_hostname (String) (defaults to: )

    Hostname of the SML used for the query

  • status (String) (defaults to: )

    Status of the DNS lookup: ‘success’, ‘error’, or ‘pending’

  • error (String, nil) (defaults to: nil)

    Error message if the DNS lookup failed



206
207
208
209
210
211
212
213
214
215
216
217
# File 'lib/e_invoice_api/models/lookup_retrieve_response.rb', line 206

class DNSRecord < EInvoiceAPI::Internal::Type::BaseModel
  # @!attribute ip
  #   IP address found in the DNS record
  #
  #   @return [String]
  required :ip, String

  # @!method initialize(ip:)
  #   DNS record information for a Peppol participant.
  #
  #   @param ip [String] IP address found in the DNS record
end

Instance Attribute Details

#ipString

IP address found in the DNS record

Returns:

  • (String)


211
# File 'lib/e_invoice_api/models/lookup_retrieve_response.rb', line 211

required :ip, String