Class: Cloudflare::Firewall::Rule

Inherits:
Representation
  • Object
show all
Includes:
Async::REST::Representation::Mutable
Defined in:
lib/cloudflare/firewall.rb

Constant Summary

Constants inherited from Representation

Representation::WRAPPER

Instance Method Summary collapse

Methods inherited from Representation

#errors, #messages, #represent, #represent_message, #representation, #result, #results, #success?, #to_hash, #to_id

Instance Method Details

#configurationObject



23
24
25
# File 'lib/cloudflare/firewall.rb', line 23

def configuration
	result[:configuration]
end

#modeObject



15
16
17
# File 'lib/cloudflare/firewall.rb', line 15

def mode
	result[:mode]
end

#notesObject



19
20
21
# File 'lib/cloudflare/firewall.rb', line 19

def notes
	result[:notes]
end

#to_sObject



27
28
29
# File 'lib/cloudflare/firewall.rb', line 27

def to_s
	"#{configuration[:value]} - #{mode} - #{notes}"
end