Class: Noteshred::Request
- Inherits:
-
Object
- Object
- Noteshred::Request
- Defined in:
- lib/noteshred/request.rb
Instance Attribute Summary collapse
-
#confirm_password ⇒ Object
Returns the value of attribute confirm_password.
-
#message ⇒ Object
Returns the value of attribute message.
-
#password ⇒ Object
Returns the value of attribute password.
-
#recipient_email ⇒ Object
Returns the value of attribute recipient_email.
Instance Method Summary collapse
Instance Attribute Details
#confirm_password ⇒ Object
Returns the value of attribute confirm_password.
3 4 5 |
# File 'lib/noteshred/request.rb', line 3 def confirm_password @confirm_password end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/noteshred/request.rb', line 3 def end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/noteshred/request.rb', line 3 def password @password end |
#recipient_email ⇒ Object
Returns the value of attribute recipient_email.
3 4 5 |
# File 'lib/noteshred/request.rb', line 3 def recipient_email @recipient_email end |
Instance Method Details
#create ⇒ Object
8 9 10 11 12 |
# File 'lib/noteshred/request.rb', line 8 def create validate_attributes self.confirm_password = self.password Noteshred::API.post('/note_requests', Noteshred::Tools.hashify(self)) end |