class Fog::Associations::OracleOneIdentity

Attributes

details_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 49
def initialize(model, name, collection_name, options)
  @details_name = options[:details_name]
  super(model, name, collection_name, options)
end

Public Instance Methods

create_getter() click to toggle source
# File lib/fog/oracle/models/associations.rb, line 54
      def create_getter
        super

        model.class_eval <<-EOS, __FILE__, __LINE__
          def #{details_name}
            return nil if associations[:#{name}].nil?
            service.send(self.class.associations[:#{name}]).get(associations[:#{name}])
          end
        EOS
      end