Class: SignIn::UserCodeMap
- Inherits:
-
Object
- Object
- SignIn::UserCodeMap
- Includes:
- ActiveModel::Validations
- Defined in:
- app/models/sign_in/user_code_map.rb
Instance Attribute Summary collapse
-
#client_config ⇒ Object
readonly
Returns the value of attribute client_config.
-
#client_state ⇒ Object
readonly
Returns the value of attribute client_state.
-
#login_code ⇒ Object
readonly
Returns the value of attribute login_code.
-
#terms_code ⇒ Object
readonly
Returns the value of attribute terms_code.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(login_code:, type:, client_config:, client_state:, terms_code:) ⇒ UserCodeMap
constructor
A new instance of UserCodeMap.
- #persisted? ⇒ Boolean
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 = login_code @type = type @client_config = client_config @client_state = client_state @terms_code = terms_code validate! end |
Instance Attribute Details
#client_config ⇒ Object (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_state ⇒ Object (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_code ⇒ Object (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 @login_code end |
#terms_code ⇒ Object (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 |
#type ⇒ Object (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
31 32 33 |
# File 'app/models/sign_in/user_code_map.rb', line 31 def persisted? false end |