Class: Baza::Index
Instance Method Summary
collapse
#model_name, #to_model
Instance Method Details
#data ⇒ Object
8
9
10
11
12
13
|
# File 'lib/baza/index.rb', line 8
def data
{
name: name,
columns: columns
}
end
|
#inspect ⇒ Object
15
16
17
|
# File 'lib/baza/index.rb', line 15
def inspect
to_s
end
|
#to_param ⇒ Object
19
20
21
|
# File 'lib/baza/index.rb', line 19
def to_param
name
end
|
#to_s ⇒ Object
4
5
6
|
# File 'lib/baza/index.rb', line 4
def to_s
"#<#{self.class.name} name: \"#{name}\" unique=\"#{unique?}\" columns: #{@columns}>"
end
|