Class: Giftrocket::Embed

Inherits:
Object
  • Object
show all
Defined in:
lib/giftrocket/embed.rb

Class Method Summary collapse

Class Method Details

.tokenize(payload) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/giftrocket/embed.rb', line 5

def self.tokenize(payload)
  JWT.encode(
    payload,
    Giftrocket.config[:access_token],
    'HS256'
  )
end