Class: SimpleRewriter::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_rewriter/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
12
13
14
# File 'lib/simple_rewriter/configuration.rb', line 5

def initialize
  @reader = SimpleRewriter::Reader
  @writer = SimpleRewriter::Writer
  @save = false
  @integer_range = 0..10
  @hash_key_length = 5
  @rand_num_max = 10
  @address = nil
  @sample_pdf_url = "http://www.africau.edu/images/default/sample.pdf"
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



2
3
4
# File 'lib/simple_rewriter/configuration.rb', line 2

def address
  @address
end

#hash_key_lengthObject

Returns the value of attribute hash_key_length.



2
3
4
# File 'lib/simple_rewriter/configuration.rb', line 2

def hash_key_length
  @hash_key_length
end

#hash_value_lengthObject

Returns the value of attribute hash_value_length.



2
3
4
# File 'lib/simple_rewriter/configuration.rb', line 2

def hash_value_length
  @hash_value_length
end

#integer_rangeObject

Returns the value of attribute integer_range.



2
3
4
# File 'lib/simple_rewriter/configuration.rb', line 2

def integer_range
  @integer_range
end

#rand_num_maxObject

Returns the value of attribute rand_num_max.



2
3
4
# File 'lib/simple_rewriter/configuration.rb', line 2

def rand_num_max
  @rand_num_max
end

#readerObject

Returns the value of attribute reader.



2
3
4
# File 'lib/simple_rewriter/configuration.rb', line 2

def reader
  @reader
end

#sample_pdf_urlObject

Returns the value of attribute sample_pdf_url.



2
3
4
# File 'lib/simple_rewriter/configuration.rb', line 2

def sample_pdf_url
  @sample_pdf_url
end

#saveObject

Returns the value of attribute save.



2
3
4
# File 'lib/simple_rewriter/configuration.rb', line 2

def save
  @save
end

#writerObject

Returns the value of attribute writer.



2
3
4
# File 'lib/simple_rewriter/configuration.rb', line 2

def writer
  @writer
end