Class: Openlayer::Models::Governance::FrameworkUpdateParams::Avatar

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/governance/framework_update_params.rb,
sig/openlayer/models/governance/framework_update_params.rbs

Defined Under Namespace

Modules: Type

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(type:, value:) ⇒ Object

The icon shown for the framework.

Parameters:



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/openlayer/models/governance/framework_update_params.rb', line 96

class Avatar < Openlayer::Internal::Type::BaseModel
  # @!attribute type
  #
  #   @return [Symbol, Openlayer::Models::Governance::FrameworkUpdateParams::Avatar::Type]
  required :type, enum: -> { Openlayer::Governance::FrameworkUpdateParams::Avatar::Type }

  # @!attribute value
  #
  #   @return [String]
  required :value, String

  # @!method initialize(type:, value:)
  #   The icon shown for the framework.
  #
  #   @param type [Symbol, Openlayer::Models::Governance::FrameworkUpdateParams::Avatar::Type]
  #   @param value [String]

  # @see Openlayer::Models::Governance::FrameworkUpdateParams::Avatar#type
  module Type
    extend Openlayer::Internal::Type::Enum

    EMOJI = :emoji
    IMAGE_URL = :imageUrl
    BUILTIN_IMAGE = :builtinImage

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#type ⇒ Symbol, Openlayer::Models::Governance::FrameworkUpdateParams::Avatar::Type

Parameters:

  • value (Openlayer::Models::Governance::FrameworkUpdateParams::Avatar::type_)

Returns:



100
# File 'lib/openlayer/models/governance/framework_update_params.rb', line 100

required :type, enum: -> { Openlayer::Governance::FrameworkUpdateParams::Avatar::Type }

#value ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


105
# File 'lib/openlayer/models/governance/framework_update_params.rb', line 105

required :value, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


88
# File 'sig/openlayer/models/governance/framework_update_params.rbs', line 88

def to_hash: -> {