Class: Locomotive::API::Forms::MembershipForm

Inherits:
BaseForm
  • Object
show all
Defined in:
app/api/locomotive/api/forms/membership_form.rb

Instance Attribute Summary collapse

Attributes inherited from BaseForm

#_persisted, #_policy

Instance Method Summary collapse

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_emailObject

Returns the value of attribute account_email.



9
10
11
# File 'app/api/locomotive/api/forms/membership_form.rb', line 9

def 
  @account_email
end

#siteObject

Returns the value of attribute site.



8
9
10
# File 'app/api/locomotive/api/forms/membership_form.rb', line 8

def site
  @site
end