Class: MendixBridge::Model::Attribute

Inherits:
Data
  • Object
show all
Defined in:
lib/mendix_bridge/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#defaultObject (readonly)

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



5
6
7
# File 'lib/mendix_bridge/model.rb', line 5

def default
  @default
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/mendix_bridge/model.rb', line 5

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



5
6
7
# File 'lib/mendix_bridge/model.rb', line 5

def options
  @options
end

#requiredObject (readonly)

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



5
6
7
# File 'lib/mendix_bridge/model.rb', line 5

def required
  @required
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/mendix_bridge/model.rb', line 5

def type
  @type
end

Instance Method Details

#to_hObject



6
7
8
# File 'lib/mendix_bridge/model.rb', line 6

def to_h
  { name:, type:, required:, default:, **options }.compact
end