Class: Fnsapi::GetMessageService

Inherits:
BaseService show all
Includes:
KktConcern
Defined in:
lib/fnsapi/get_message_service.rb

Instance Method Summary collapse

Methods included from KktConcern

#auth_params, #refresh_credentials!, #uri

Methods inherited from BaseService

#client

Instance Method Details

#call(message_id, user_id) ⇒ Object



7
8
9
10
# File 'lib/fnsapi/get_message_service.rb', line 7

def call(message_id, user_id)
  result = client(auth_params(user_id)).call(:get_message, message: message_hash(message_id))
  result.body.dig(:get_message_response)
end