def time_to_hash(keys_case)
			raise Exception.new("Invalid time value: nil") if self.time.nil?
			
			# Custom date range
			if time.is_a?(Hash)
				return {
					get_attribute_key("custom_date_range_end", keys_case) => {
						get_attribute_key("day", keys_case) => self.time[:custom_date_range_end][:day],
						get_attribute_key("month", keys_case) => self.time[:custom_date_range_end][:month],
						get_attribute_key("year", keys_case) => self.time[:custom_date_range_end][:year],
						
					},
					get_attribute_key("custom_date_range_start", keys_case) => {
						get_attribute_key("day", keys_case) => self.time[:custom_date_range_start][:day],
						get_attribute_key("month", keys_case) => self.time[:custom_date_range_start][:month],
						get_attribute_key("year", keys_case) => self.time[:custom_date_range_start][:year],
					}
				}
			# Time periods
			else
				return TIME_PERIODS[time.to_s]
			end
		end
def time_to_hash(keys_case)
			raise Exception.new("Invalid time value: nil") if self.time.nil?
			
			# Custom date range
			if time.is_a?(Hash)
				return {
					get_attribute_key("custom_date_range_end", keys_case) => {
						get_attribute_key("day", keys_case) => self.time[:custom_date_range_end][:day],
						get_attribute_key("month", keys_case) => self.time[:custom_date_range_end][:month],
						get_attribute_key("year", keys_case) => self.time[:custom_date_range_end][:year],
						
					},
					get_attribute_key("custom_date_range_start", keys_case) => {
						get_attribute_key("day", keys_case) => self.time[:custom_date_range_start][:day],
						get_attribute_key("month", keys_case) => self.time[:custom_date_range_start][:month],
						get_attribute_key("year", keys_case) => self.time[:custom_date_range_start][:year],
					}
				}
			# Time periods
			else
				return TIME_PERIODS[time.to_s]
			end
		end
Public : Return the time attribute of the ReportRequest as a valid Hash for SOAP requests

 Author:: jlopezn@neonline.cl

 keys_case - specifies the keys_case for the hash: :underscore or :camelcase

 Returns:: Hash