Class: Files::BundleRegistration

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/bundle_registration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}, options = {}) ⇒ BundleRegistration

Returns a new instance of BundleRegistration.



7
8
9
10
# File 'lib/files.com/models/bundle_registration.rb', line 7

def initialize(attributes = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/files.com/models/bundle_registration.rb', line 5

def attributes
  @attributes
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/bundle_registration.rb', line 5

def options
  @options
end

Instance Method Details

#codeObject

string - Registration cookie code



13
14
15
# File 'lib/files.com/models/bundle_registration.rb', line 13

def code
  @attributes[:code]
end

#companyObject

string - Registrant company name



23
24
25
# File 'lib/files.com/models/bundle_registration.rb', line 23

def company
  @attributes[:company]
end

#emailObject

string - Registrant email address



28
29
30
# File 'lib/files.com/models/bundle_registration.rb', line 28

def email
  @attributes[:email]
end

#form_field_dataObject

string - Data for form field set with form field ids as keys and user data as values



43
44
45
# File 'lib/files.com/models/bundle_registration.rb', line 43

def form_field_data
  @attributes[:form_field_data]
end

#form_field_set_idObject

int64 - Id of associated form field set



38
39
40
# File 'lib/files.com/models/bundle_registration.rb', line 38

def form_field_set_id
  @attributes[:form_field_set_id]
end

#inbox_codeObject

string - InboxRegistration cookie code, if there is an associated InboxRegistration



33
34
35
# File 'lib/files.com/models/bundle_registration.rb', line 33

def inbox_code
  @attributes[:inbox_code]
end

#nameObject

string - Registrant name



18
19
20
# File 'lib/files.com/models/bundle_registration.rb', line 18

def name
  @attributes[:name]
end