Class: Cloudflare::Firewall::Rule

Inherits:
Representation
  • Object
show all
Defined in:
lib/cloudflare/firewall.rb

Instance Method Summary collapse

Methods inherited from Representation

#process_response, #represent, #represent_message, #representation, #to_hash

Instance Method Details

#configurationObject



37
38
39
# File 'lib/cloudflare/firewall.rb', line 37

def configuration
	value[:configuration]
end

#modeObject



29
30
31
# File 'lib/cloudflare/firewall.rb', line 29

def mode
	value[:mode]
end

#notesObject



33
34
35
# File 'lib/cloudflare/firewall.rb', line 33

def notes
	value[:notes]
end

#to_sObject



41
42
43
# File 'lib/cloudflare/firewall.rb', line 41

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