Class: ClientInfoBase
- Inherits:
-
Object
- Object
- ClientInfoBase
- Defined in:
- lib/domain/client_info_base.rb
Overview
Client Base model conatining client information
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#to_json(*data) ⇒ <Type>
Converts User with client details object to Json object.
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
7 8 9 |
# File 'lib/domain/client_info_base.rb', line 7 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
8 9 10 |
# File 'lib/domain/client_info_base.rb', line 8 def client_secret @client_secret end |
#user ⇒ Object
Returns the value of attribute user.
9 10 11 |
# File 'lib/domain/client_info_base.rb', line 9 def user @user end |
Instance Method Details
#to_json(*data) ⇒ <Type>
Converts User with client details object to Json object
18 19 20 21 22 23 24 |
# File 'lib/domain/client_info_base.rb', line 18 def to_json(*data) { client_id: @client_id, client_secret: @client_secret, user: @user }.to_json(*data) end |