Class: LockstepSdk::DeveloperAccountSubmitModel
- Inherits:
-
Object
- Object
- LockstepSdk::DeveloperAccountSubmitModel
- Defined in:
- lib/lockstep_sdk/models/developer_account_submit_model.rb
Overview
Model containing information to create a new developer account.
Instance Attribute Summary collapse
-
#company_name ⇒ String
The company name of the developer.
-
#email ⇒ Email
The email address of the developer.
-
#first_name ⇒ String
The first name of the person requesting the developer account.
-
#last_name ⇒ String
The last name of the person requesting the developer account.
-
#name ⇒ String
The name of the developer.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ DeveloperAccountSubmitModel
constructor
Initialize the DeveloperAccountSubmitModel using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ DeveloperAccountSubmitModel
Initialize the DeveloperAccountSubmitModel using the provided prototype
25 26 27 28 29 30 31 |
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 25 def initialize(params = {}) @name = params.dig(:name) @first_name = params.dig(:first_name) @last_name = params.dig(:last_name) @email = params.dig(:email) @company_name = params.dig(:company_name) end |
Instance Attribute Details
#company_name ⇒ String
Returns The company name of the developer.
51 52 53 |
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 51 def company_name @company_name end |
#email ⇒ Email
Returns The email address of the developer.
47 48 49 |
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 47 def email @email end |
#first_name ⇒ String
Returns The first name of the person requesting the developer account.
39 40 41 |
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 39 def first_name @first_name end |
#last_name ⇒ String
Returns The last name of the person requesting the developer account.
43 44 45 |
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 43 def last_name @last_name end |
#name ⇒ String
Returns The name of the developer.
35 36 37 |
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 35 def name @name end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
55 56 57 58 59 60 61 62 63 |
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 55 def as_json(={}) { 'name' => @name, 'firstName' => @first_name, 'lastName' => @last_name, 'email' => @email, 'companyName' => @company_name, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
67 68 69 |
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 67 def to_json(*) "[#{as_json(*).to_json(*)}]" end |