Class: LockstepSdk::InviteSubmitModel
- Inherits:
-
Object
- Object
- LockstepSdk::InviteSubmitModel
- Defined in:
- lib/lockstep_sdk/models/invite_submit_model.rb
Overview
Model to invite a new user to your accounting group
Instance Attribute Summary collapse
-
#email ⇒ Email
The email address of the user to invite.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ InviteSubmitModel
constructor
Initialize the InviteSubmitModel using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ InviteSubmitModel
Initialize the InviteSubmitModel using the provided prototype
28 29 30 |
# File 'lib/lockstep_sdk/models/invite_submit_model.rb', line 28 def initialize(params = {}) @email = params.dig(:email) end |
Instance Attribute Details
#email ⇒ Email
Returns The email address of the user to invite.
34 35 36 |
# File 'lib/lockstep_sdk/models/invite_submit_model.rb', line 34 def email @email end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
38 39 40 41 42 |
# File 'lib/lockstep_sdk/models/invite_submit_model.rb', line 38 def as_json(={}) { 'email' => @email, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
46 47 48 |
# File 'lib/lockstep_sdk/models/invite_submit_model.rb', line 46 def to_json(*) "[#{as_json(*).to_json(*)}]" end |