Class: Threatinator::Model::Observables::Ipv4
- Defined in:
- lib/threatinator/model/observables/ipv4.rb
Instance Attribute Summary collapse
-
#ipv4 ⇒ Object
readonly
Returns the value of attribute ipv4.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Ipv4
constructor
A new instance of Ipv4.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(opts = {}) ⇒ Ipv4
Returns a new instance of Ipv4.
22 23 24 25 |
# File 'lib/threatinator/model/observables/ipv4.rb', line 22 def initialize(opts = {}) @ipv4 = opts.delete(:ipv4) super() end |
Instance Attribute Details
#ipv4 ⇒ Object (readonly)
Returns the value of attribute ipv4.
10 11 12 |
# File 'lib/threatinator/model/observables/ipv4.rb', line 10 def ipv4 @ipv4 end |
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/threatinator/model/observables/ipv4.rb', line 27 def to_s return ipv4.to_s end |