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

#default ⇒ Object (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

#name ⇒ Object (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

#options ⇒ Object (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

#required ⇒ Object (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

#type ⇒ Object (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_h ⇒ Object



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

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