Class: Rose::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/rose/attribute.rb

Overview

An Attribute is value object used to operate on a table

Direct Known Subclasses

Direct, Indirect

Defined Under Namespace

Classes: Collection, Direct, Filter, Indirect, Pivot, Sort

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method_name, column_name) ⇒ Attribute

Returns a new instance of Attribute.



7
8
9
10
# File 'lib/rose/attribute.rb', line 7

def initialize(method_name, column_name)
  @method_name = method_name
  @column_name = column_name
end

Instance Attribute Details

#column_nameObject (readonly)

Returns the value of attribute column_name.



5
6
7
# File 'lib/rose/attribute.rb', line 5

def column_name
  @column_name
end

#method_nameObject (readonly)

Returns the value of attribute method_name.



4
5
6
# File 'lib/rose/attribute.rb', line 4

def method_name
  @method_name
end