Class: Aikido::Zen::AttackWave::Request
- Inherits:
-
Object
- Object
- Aikido::Zen::AttackWave::Request
- Defined in:
- lib/aikido/zen/attack_wave.rb
Instance Attribute Summary collapse
- #ip_address ⇒ String readonly
- #source ⇒ String readonly
- #user_agent ⇒ String readonly
Instance Method Summary collapse
- #as_json ⇒ Object
- #initialize(ip_address:, user_agent:, source:) ⇒ Aikido::Zen::AttackWave::Request constructor
Constructor Details
#initialize(ip_address:, user_agent:, source:) ⇒ Aikido::Zen::AttackWave::Request
50 51 52 53 54 |
# File 'lib/aikido/zen/attack_wave.rb', line 50 def initialize(ip_address:, user_agent:, source:) @ip_address = ip_address @user_agent = user_agent @source = source end |
Instance Attribute Details
#ip_address ⇒ String (readonly)
38 39 40 |
# File 'lib/aikido/zen/attack_wave.rb', line 38 def ip_address @ip_address end |
#source ⇒ String (readonly)
44 45 46 |
# File 'lib/aikido/zen/attack_wave.rb', line 44 def source @source end |
#user_agent ⇒ String (readonly)
41 42 43 |
# File 'lib/aikido/zen/attack_wave.rb', line 41 def user_agent @user_agent end |
Instance Method Details
#as_json ⇒ Object
56 57 58 59 60 61 62 |
# File 'lib/aikido/zen/attack_wave.rb', line 56 def as_json { ipAddress: @ip_address, userAgent: @user_agent, source: @source }.compact end |