Method: Legato::Model#set_instance_klass

Defined in:
lib/legato/model.rb

#set_instance_klass(klass) ⇒ Object

Set the class used to make new instances of returned results from GA

Parameters:

  • klass (Class)

    any class that accepts a hash of attributes to initialize the values of the class

Returns:

  • the original class given



59
60
61
# File 'lib/legato/model.rb', line 59

def set_instance_klass(klass)
  @instance_klass = klass
end