Class: Fx::Adapters::MySQL::Functions Private
- Inherits:
-
Object
- Object
- Fx::Adapters::MySQL::Functions
- Defined in:
- lib/fx/adapters/mysql/functions.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Fetches defined functions from the mysql connection.
Class Method Summary collapse
-
.all(*args) ⇒ Array<Fx::Function>
private
Wraps #all as a static facade.
Instance Method Summary collapse
-
#all ⇒ Array<Fx::Function>
private
All of the functions that this connection has defined.
-
#initialize(connection) ⇒ Functions
constructor
private
A new instance of Functions.
Constructor Details
#initialize(connection) ⇒ Functions
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Functions.
14 15 16 |
# File 'lib/fx/adapters/mysql/functions.rb', line 14 def initialize(connection) @connection = connection end |
Class Method Details
.all(*args) ⇒ Array<Fx::Function>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Wraps #all as a static facade.
10 11 12 |
# File 'lib/fx/adapters/mysql/functions.rb', line 10 def self.all(*args) new(*args).all end |
Instance Method Details
#all ⇒ Array<Fx::Function>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
All of the functions that this connection has defined.
21 22 23 |
# File 'lib/fx/adapters/mysql/functions.rb', line 21 def all functions_from_mysql.map { |function| to_fx_function(function) } end |