Class: LockstepSdk::DeveloperAccountSubmitModel

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ DeveloperAccountSubmitModel

Initialize the DeveloperAccountSubmitModel using the provided prototype



25
26
27
28
29
30
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 25

def initialize(params = {})
    @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_nameString

Returns The company name of the developer.

Returns:

  • (String)

    The company name of the developer.



46
47
48
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 46

def company_name
  @company_name
end

#emailEmail

Returns The email address of the developer.

Returns:

  • (Email)

    The email address of the developer.



42
43
44
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 42

def email
  @email
end

#first_nameString

Returns The first name of the person requesting the developer account.

Returns:

  • (String)

    The first name of the person requesting the developer account.



34
35
36
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 34

def first_name
  @first_name
end

#last_nameString

Returns The last name of the person requesting the developer account.

Returns:

  • (String)

    The last name of the person requesting the developer account.



38
39
40
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 38

def last_name
  @last_name
end

Instance Method Details

#as_json(options = {}) ⇒ object

Returns This object as a JSON key-value structure.

Returns:

  • (object)

    This object as a JSON key-value structure



50
51
52
53
54
55
56
57
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 50

def as_json(options={})
    {
        'firstName' => @first_name,
        'lastName' => @last_name,
        'email' => @email,
        'companyName' => @company_name,
    }
end

#to_json(*options) ⇒ String

Returns This object converted to a JSON string.

Returns:

  • (String)

    This object converted to a JSON string



61
62
63
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 61

def to_json(*options)
    "[#{as_json(*options).to_json(*options)}]"
end