Class: ClientInfoBase

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#client_idObject

Returns the value of attribute client_id.



3
4
5
# File 'lib/domain/client_info_base.rb', line 3

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



4
5
6
# File 'lib/domain/client_info_base.rb', line 4

def client_secret
  @client_secret
end

#userObject

Returns the value of attribute user.



5
6
7
# File 'lib/domain/client_info_base.rb', line 5

def user
  @user
end

Class Method Details

.json_create(o) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/domain/client_info_base.rb', line 13

def self.json_create(o)
  a_from_json = new
  a_from_json.client_id = o['client_id']
  a_from_json.client_secret = o['client_secret']
  a_from_json.user = o['user']
  a_from_json
end

Instance Method Details

#to_json(*a) ⇒ Object



7
8
9
10
11
12
# File 'lib/domain/client_info_base.rb', line 7

def to_json(*a)
{ 
    client_id: @client_id, client_secret: @client_secret, user: @user
  }.to_json(*a)

end