Module: Ethon::Easy::Options

Included in:
Ethon::Easy
Defined in:
lib/ethon/easy/options.rb

Overview

This module contains the logic and knowledge about the available options on easy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#urlObject

Returns the value of attribute url


8
9
10
# File 'lib/ethon/easy/options.rb', line 8

def url
  @url
end

Instance Method Details

#escape=(b) ⇒ Object


15
16
17
# File 'lib/ethon/easy/options.rb', line 15

def escape=( b )
  @escape = b
end

#escape?Boolean

Returns:

  • (Boolean)

19
20
21
22
# File 'lib/ethon/easy/options.rb', line 19

def escape?
  return true if !defined?(@escape) || @escape.nil?
  @escape
end

#multipart=(b) ⇒ Object


24
25
26
# File 'lib/ethon/easy/options.rb', line 24

def multipart=(b)
  @multipart = b
end

#multipart?Boolean

Returns:

  • (Boolean)

28
29
30
# File 'lib/ethon/easy/options.rb', line 28

def multipart?
  !!@multipart
end