class Fog::Associations::OracleManyIdentities
Attributes
all_name[R]
Public Class Methods
new(model, name, collection_name, options)
click to toggle source
Calls superclass method
# File lib/fog/oracle/models/associations.rb, line 69 def initialize(model, name, collection_name, options) @all_name = options[:all_name] super(model, name, collection_name, options) end
Public Instance Methods
create_getter()
click to toggle source
Calls superclass method
Fog::Associations::OracleDefault#create_getter
# File lib/fog/oracle/models/associations.rb, line 74 def create_getter super model.class_eval <<-EOS, __FILE__, __LINE__ def #{all_name} return [] if associations[:#{name}].nil? data = Array(associations[:#{name}]).map do |association| service.send(self.class.associations[:#{name}]).get(association) end #{association_class}.new(data) end EOS end