Exception: ClashOfClansApi::Models::InvalidDataError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/clash_of_clans_api/models/invalid_data_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, data_hash = nil) ⇒ InvalidDataError

Returns a new instance of InvalidDataError.



6
7
8
9
10
# File 'lib/clash_of_clans_api/models/invalid_data_error.rb', line 6

def initialize(message, data_hash=nil)
	super(message)
	
	@data_hash = data_hash
end

Instance Attribute Details

#data_hashObject (readonly)

Returns the value of attribute data_hash.



4
5
6
# File 'lib/clash_of_clans_api/models/invalid_data_error.rb', line 4

def data_hash
  @data_hash
end