class Rasti::DB::ComputedAttribute
Attributes
identifier[R]
join[R]
Public Class Methods
new(identifier, &join)
click to toggle source
# File lib/rasti/db/computed_attribute.rb, line 7 def initialize(identifier, &join) @identifier = identifier @join = join end
Public Instance Methods
apply_join(dataset, environment)
click to toggle source
# File lib/rasti/db/computed_attribute.rb, line 12 def apply_join(dataset, environment) join ? join.call(dataset, environment) : dataset end