Module: GlobalID::Identification
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/global_id/identification.rb
Instance Method Summary collapse
- #to_global_id ⇒ Object (also: #to_gid)
- #to_signed_global_id(options = {}) ⇒ Object (also: #to_sgid)
Instance Method Details
#to_global_id ⇒ Object Also known as: to_gid
7 8 9 |
# File 'lib/global_id/identification.rb', line 7 def to_global_id @global_id ||= GlobalID.create(self) end |
#to_signed_global_id(options = {}) ⇒ Object Also known as: to_sgid
12 13 14 |
# File 'lib/global_id/identification.rb', line 12 def to_signed_global_id( = {}) @signed_global_id ||= SignedGlobalID.create(self, ) end |