Class: Ynl::Models::AttributeSet::Attribute

Inherits:
Struct
  • Object
show all
Defined in:
ynl/lib/ynl/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checks ⇒ Object

Returns the value of attribute checks

Returns:

  • (Object) —

    the current value of checks



112
113
114
# File 'ynl/lib/ynl/models.rb', line 112

def checks
  @checks
end

#doc ⇒ Object

Returns the value of attribute doc

Returns:

  • (Object) —

    the current value of doc



112
113
114
# File 'ynl/lib/ynl/models.rb', line 112

def doc
  @doc
end

#enum ⇒ Object

Returns the value of attribute enum

Returns:

  • (Object) —

    the current value of enum



112
113
114
# File 'ynl/lib/ynl/models.rb', line 112

def enum
  @enum
end

#enum_as_flags ⇒ Object

Returns the value of attribute enum_as_flags

Returns:

  • (Object) —

    the current value of enum_as_flags



112
113
114
# File 'ynl/lib/ynl/models.rb', line 112

def enum_as_flags
  @enum_as_flags
end

#multi_attr ⇒ Object

Returns the value of attribute multi_attr

Returns:

  • (Object) —

    the current value of multi_attr



112
113
114
# File 'ynl/lib/ynl/models.rb', line 112

def multi_attr
  @multi_attr
end

#name ⇒ Object

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



112
113
114
# File 'ynl/lib/ynl/models.rb', line 112

def name
  @name
end

#type ⇒ Object

Returns the value of attribute type

Returns:

  • (Object) —

    the current value of type



112
113
114
# File 'ynl/lib/ynl/models.rb', line 112

def type
  @type
end

#value ⇒ Object

Returns the value of attribute value

Returns:

  • (Object) —

    the current value of value



112
113
114
# File 'ynl/lib/ynl/models.rb', line 112

def value
  @value
end

Instance Method Details

#multi? ⇒ Boolean

Returns:

  • (Boolean)


119
120
121
# File 'ynl/lib/ynl/models.rb', line 119

def multi?
  multi_attr
end

#resolve(f) ⇒ Object



113
114
115
116
117
# File 'ynl/lib/ynl/models.rb', line 113

def resolve(f)
  self.type = type.resolve(f)
  self.enum = enum.resolve(f) if enum
  self
end