Class: ClientInfoBase

Inherits:
Object
  • Object
show all
Defined in:
lib/domain/client_info_base.rb

Overview

Client Base model conatining client information

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#client_idObject

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_secretObject

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

#userObject

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

Parameters:

  • *data (refrence)

    User object with client details refrence

Returns:

  • (<Type>)

    Json represenatation of User with client details



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