Class: SignIn::UserCodeMap

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
app/models/sign_in/user_code_map.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(login_code:, type:, client_config:, client_state:, terms_code:) ⇒ UserCodeMap

Returns a new instance of UserCodeMap.



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'app/models/sign_in/user_code_map.rb', line 17

def initialize(login_code:,
               type:,
               client_config:,
               client_state:,
               terms_code:)
  @login_code = 
  @type = type
  @client_config = client_config
  @client_state = client_state
  @terms_code = terms_code

  validate!
end

Instance Attribute Details

#client_configObject (readonly)

Returns the value of attribute client_config.



7
8
9
# File 'app/models/sign_in/user_code_map.rb', line 7

def client_config
  @client_config
end

#client_stateObject (readonly)

Returns the value of attribute client_state.



7
8
9
# File 'app/models/sign_in/user_code_map.rb', line 7

def client_state
  @client_state
end

#login_codeObject (readonly)

Returns the value of attribute login_code.



7
8
9
# File 'app/models/sign_in/user_code_map.rb', line 7

def 
  @login_code
end

#terms_codeObject (readonly)

Returns the value of attribute terms_code.



7
8
9
# File 'app/models/sign_in/user_code_map.rb', line 7

def terms_code
  @terms_code
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'app/models/sign_in/user_code_map.rb', line 7

def type
  @type
end

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'app/models/sign_in/user_code_map.rb', line 31

def persisted?
  false
end