Method: SelfSDK::Messages::FactRequest#body
- Defined in:
- lib/messages/fact_request.rb
permalink #body ⇒ Object
[View source]
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/messages/fact_request.rb', line 70 def body b = { typ: MSG_TYPE, iss: @jwt.id, sub: @to, iat: SelfSDK::Time.now.strftime('%FT%TZ'), exp: (SelfSDK::Time.now + @exp_timeout).strftime('%FT%TZ'), cid: @id, jti: SecureRandom.uuid, facts: @facts, } b[:options] = @options unless (@options.nil? || @options == false) b[:description] = @description unless (@description.nil? || @description.empty?) b end |