Class: PgGnostic::Tables
- Inherits:
-
Object
show all
- Defined in:
- lib/pg_gnostic/view_definition.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
Instance Attribute Details
#sql ⇒ Object
Returns the value of attribute sql.
32
33
34
|
# File 'lib/pg_gnostic/view_definition.rb', line 32
def sql
@sql
end
|
Instance Method Details
#pname ⇒ Object
33
34
35
|
# File 'lib/pg_gnostic/view_definition.rb', line 33
def pname
%Q[format_name(patients.name)]
end
|
#timestamps ⇒ Object
37
38
39
|
# File 'lib/pg_gnostic/view_definition.rb', line 37
def timestamps
['created_at','updated_at']
end
|