Class: JsonRander::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
15
# File 'lib/json_rander/configuration.rb', line 11

def initialize
  @string_max_length = 5
  @array_max_length  = 5
  @hash_max_length   = 5
end

Instance Attribute Details

#array_max_lengthObject

Returns the value of attribute array_max_length.



10
11
12
# File 'lib/json_rander/configuration.rb', line 10

def array_max_length
  @array_max_length
end

#hash_max_lengthObject

Returns the value of attribute hash_max_length.



10
11
12
# File 'lib/json_rander/configuration.rb', line 10

def hash_max_length
  @hash_max_length
end

#string_max_lengthObject

Returns the value of attribute string_max_length.



10
11
12
# File 'lib/json_rander/configuration.rb', line 10

def string_max_length
  @string_max_length
end