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


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

def url
  @url
end

Instance Method Details

#escape=(b) ⇒ Object


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

def escape=( b )
  @escape = b
end

#escape?Boolean


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

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

#multipart=(b) ⇒ Object


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

def multipart=(b)
  @multipart = b
end

#multipart?Boolean


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

def multipart?
  !!@multipart
end