Class: Locomotive::API::Forms::MembershipForm
- Defined in:
- app/api/locomotive/api/forms/membership_form.rb
Instance Attribute Summary collapse
-
#account_email ⇒ Object
Returns the value of attribute account_email.
-
#site ⇒ Object
Returns the value of attribute site.
Attributes inherited from BaseForm
Instance Method Summary collapse
-
#initialize(site, attributes = {}) ⇒ MembershipForm
constructor
A new instance of MembershipForm.
Methods inherited from BaseForm
attributes, attrs, define_attribute, #persisted?, #serializable_hash, #set_attribute
Constructor Details
#initialize(site, attributes = {}) ⇒ MembershipForm
Returns a new instance of MembershipForm.
11 12 13 14 |
# File 'app/api/locomotive/api/forms/membership_form.rb', line 11 def initialize(site, attributes = {}) self.site = site super(attributes) end |
Instance Attribute Details
#account_email ⇒ Object
Returns the value of attribute account_email.
9 10 11 |
# File 'app/api/locomotive/api/forms/membership_form.rb', line 9 def account_email @account_email end |
#site ⇒ Object
Returns the value of attribute site.
8 9 10 |
# File 'app/api/locomotive/api/forms/membership_form.rb', line 8 def site @site end |