Class: Mailfloss::Resources::Base Private

Inherits:
Object
  • Object
show all
Defined in:
lib/mailfloss/resources.rb,
sig/resources.rbs

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Base

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Base.

Parameters:



7
8
9
# File 'lib/mailfloss/resources.rb', line 7

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientClient (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:



13
14
15
# File 'lib/mailfloss/resources.rb', line 13

def client
  @client
end

Instance Method Details

#encode(segment) ⇒ String

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • segment (Object)

Returns:

  • (String)


15
16
17
# File 'lib/mailfloss/resources.rb', line 15

def encode(segment)
  URI.encode_www_form_component(segment.to_s)
end