Class: FlexTrans::Pool
- Inherits:
-
Object
- Object
- FlexTrans::Pool
- Defined in:
- lib/flex_trans/pool.rb
Class Method Summary collapse
-
.[](relation) ⇒ Object
attr_reader :map_type.
- .fetch(*args) ⇒ Object
Class Method Details
.[](relation) ⇒ Object
attr_reader :map_type
5 6 7 |
# File 'lib/flex_trans/pool.rb', line 5 def self.[](relation) new(relation) end |
.fetch(*args) ⇒ Object
9 10 11 12 |
# File 'lib/flex_trans/pool.rb', line 9 def self.fetch(*args) map_type = Struct.new(:id, :name) [map_type.new(1, 'Akira Suenami')] end |