Module: GlobalID::Identification

Defined in:
lib/global_id/identification.rb

Instance Method Summary collapse

Instance Method Details

#to_gid_param(options = {}) ⇒ Object



8
9
10
# File 'lib/global_id/identification.rb', line 8

def to_gid_param(options = {})
  to_global_id(options).to_param
end

#to_global_id(options = {}) ⇒ Object Also known as: to_gid



3
4
5
# File 'lib/global_id/identification.rb', line 3

def to_global_id(options = {})
  GlobalID.create(self, options)
end

#to_sgid_param(options = {}) ⇒ Object



17
18
19
# File 'lib/global_id/identification.rb', line 17

def to_sgid_param(options = {})
  to_signed_global_id(options).to_param
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(options = {})
  SignedGlobalID.create(self, options)
end