instance method to_h

Ruby on Rails 1.1.0

Last seen in v1.1.0

Available in: v1.0.1 v1.1.0

Signature

to_h()

No documentation comment.

Source
# File lib/global_id/signed_global_id.rb, line 62
  def to_h
    # Some serializers decodes symbol keys to symbols, others to strings.
    # Using string keys remedies that.
    { 'gid' => @uri.to_s, 'purpose' => purpose, 'expires_at' => encoded_expiration }
  end

Defined in lib/global_id/signed_global_id.rb line 62 · View on GitHub · Improve this page · Find usages on GitHub

Defined in SignedGlobalID

Type at least 2 characters to search.

↑↓ navigate · open · esc close