Class: MrCommon::PreRegistrationImporter::RowStruct

Inherits:
Struct
  • Object
show all
Defined in:
app/models/mr_common/pre_registration_importer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#emailObject

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



14
15
16
# File 'app/models/mr_common/pre_registration_importer.rb', line 14

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name

Returns:

  • (Object)

    the current value of first_name



14
15
16
# File 'app/models/mr_common/pre_registration_importer.rb', line 14

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name

Returns:

  • (Object)

    the current value of last_name



14
15
16
# File 'app/models/mr_common/pre_registration_importer.rb', line 14

def last_name
  @last_name
end

Instance Method Details

#new?Boolean

Returns true if the row does not represent a duplicate PreRegistration

Returns:

  • (Boolean)


17
18
19
# File 'app/models/mr_common/pre_registration_importer.rb', line 17

def new?
  !PreRegistration.exists_for?(self)
end