Class: Cloudflare::Firewall::Rule
- Inherits:
-
Representation
- Object
- Async::REST::Representation
- Representation
- Cloudflare::Firewall::Rule
show all
- Includes:
- Async::REST::Representation::Mutable
- Defined in:
- lib/cloudflare/firewall.rb
Constant Summary
Representation::WRAPPER
Instance Method Summary
collapse
#errors, #messages, #represent, #represent_message, #representation, #result, #results, #success?, #to_hash, #to_id
Instance Method Details
#configuration ⇒ Object
23
24
25
|
# File 'lib/cloudflare/firewall.rb', line 23
def configuration
result[:configuration]
end
|
#mode ⇒ Object
15
16
17
|
# File 'lib/cloudflare/firewall.rb', line 15
def mode
result[:mode]
end
|
#notes ⇒ Object
19
20
21
|
# File 'lib/cloudflare/firewall.rb', line 19
def notes
result[:notes]
end
|
#to_s ⇒ Object
27
28
29
|
# File 'lib/cloudflare/firewall.rb', line 27
def to_s
"#{configuration[:value]} - #{mode} - #{notes}"
end
|