Class: Files::InboxRegistration
- Inherits:
-
Object
- Object
- Files::InboxRegistration
- Defined in:
- lib/files.com/models/inbox_registration.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#code ⇒ Object
string - Registration cookie code.
-
#company ⇒ Object
string - Registrant company name.
-
#email ⇒ Object
string - Registrant email address.
-
#form_field_data ⇒ Object
string - Data for form field set with form field ids as keys and user data as values.
-
#form_field_set_id ⇒ Object
int64 - Id of associated form field set.
-
#initialize(attributes = {}, options = {}) ⇒ InboxRegistration
constructor
A new instance of InboxRegistration.
-
#name ⇒ Object
string - Registrant name.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ InboxRegistration
Returns a new instance of InboxRegistration.
7 8 9 10 |
# File 'lib/files.com/models/inbox_registration.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/inbox_registration.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/inbox_registration.rb', line 5 def @options end |
Instance Method Details
#code ⇒ Object
string - Registration cookie code
13 14 15 |
# File 'lib/files.com/models/inbox_registration.rb', line 13 def code @attributes[:code] end |
#company ⇒ Object
string - Registrant company name
23 24 25 |
# File 'lib/files.com/models/inbox_registration.rb', line 23 def company @attributes[:company] end |
#email ⇒ Object
string - Registrant email address
28 29 30 |
# File 'lib/files.com/models/inbox_registration.rb', line 28 def email @attributes[:email] end |
#form_field_data ⇒ Object
string - Data for form field set with form field ids as keys and user data as values
38 39 40 |
# File 'lib/files.com/models/inbox_registration.rb', line 38 def form_field_data @attributes[:form_field_data] end |
#form_field_set_id ⇒ Object
int64 - Id of associated form field set
33 34 35 |
# File 'lib/files.com/models/inbox_registration.rb', line 33 def form_field_set_id @attributes[:form_field_set_id] end |
#name ⇒ Object
string - Registrant name
18 19 20 |
# File 'lib/files.com/models/inbox_registration.rb', line 18 def name @attributes[:name] end |