Class: Moonbase::Models::URLValue

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moonbase/models/url_value.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(data:, type: :"value/uri/url") ⇒ Object

Some parameter documentations has been truncated, see Moonbase::Models::URLValue for more details.

URL or web address

Parameters:

  • data (String)

    A valid URL, conforming to RFC 3986, up to 8,192 characters long. It should incl

  • type (Symbol, :"value/uri/url") (defaults to: :"value/uri/url")


# File 'lib/moonbase/models/url_value.rb', line 19

Instance Attribute Details

#dataString

A valid URL, conforming to RFC 3986, up to 8,192 characters long. It should include the protocol, for example ‘https://’ or ‘support@moonbase.ai’ etc.

Returns:

  • (String)


12
# File 'lib/moonbase/models/url_value.rb', line 12

required :data, String

#typeSymbol, :"value/uri/url"

Returns:

  • (Symbol, :"value/uri/url")


17
# File 'lib/moonbase/models/url_value.rb', line 17

required :type, const: :"value/uri/url"