Class: DataMapper::Shim::ClassMethods::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/data_mapper/shim.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ Property

Returns a new instance of Property.



132
133
134
135
# File 'lib/data_mapper/shim.rb', line 132

def initialize(name, type)
  @name = name
  @type = type
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



130
131
132
# File 'lib/data_mapper/shim.rb', line 130

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



130
131
132
# File 'lib/data_mapper/shim.rb', line 130

def type
  @type
end