class Croods::Attribute

Attributes

default[RW]
default_function[RW]
name[RW]
null[RW]
type[RW]

Public Class Methods

new(name, type, null: nil, default: nil, default_function: nil) click to toggle source
# File lib/croods/attribute.rb, line 7
def initialize(name, type, null: nil, default: nil, default_function: nil)
  self.name = name.to_s
  self.type = type
  self.null = null
  self.default = default
  self.default_function = default_function
end