Module: JSONAPI::Consumer::Helpers::URI

Included in:
Associations::BelongsTo::Association, Query::Requestor
Defined in:
lib/jsonapi/consumer/helpers/uri.rb

Instance Method Summary collapse

Instance Method Details

#encode_part(part) ⇒ Object



4
5
6
# File 'lib/jsonapi/consumer/helpers/uri.rb', line 4

def encode_part(part)
  Addressable::URI.encode_component(part, Addressable::URI::CharacterClasses::UNRESERVED)
end