Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/contact-data.rb

Instance Method Summary collapse

Instance Method Details

#encode_componentObject



25
26
27
# File 'lib/contact-data.rb', line 25

def encode_component
  Addressable::URI.encode_component(self, Addressable::URI::CharacterClasses::PATH)
end

#to_options(base) ⇒ Object



29
30
31
# File 'lib/contact-data.rb', line 29

def to_options(base)
  { url: self }.to_options(base)
end