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



28
29
30
31
32
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 28

def initialize(params = {})
    @name = params.dig(: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.



44
45
46
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 44

def company_name
  @company_name
end

#emailEmail

Returns The email address of the developer.

Returns:

  • (Email)

    The email address of the developer.



40
41
42
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 40

def email
  @email
end

#nameString

Returns The name of the developer.

Returns:

  • (String)

    The name of the developer.



36
37
38
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 36

def name
  @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



48
49
50
51
52
53
54
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 48

def as_json(options={})
    {
        'name' => @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



58
59
60
# File 'lib/lockstep_sdk/models/developer_account_submit_model.rb', line 58

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