Class: TRMNL::API::Models::IPAddress
- Inherits:
-
Data
- Object
- Data
- TRMNL::API::Models::IPAddress
- Defined in:
- lib/trmnl/api/models/ip_address.rb
Overview
IPs API response.
Instance Attribute Summary collapse
-
#version_4 ⇒ Object
readonly
Returns the value of attribute version_4.
-
#version_6 ⇒ Object
readonly
Returns the value of attribute version_6.
Class Method Summary collapse
Instance Attribute Details
#version_4 ⇒ Object (readonly)
Returns the value of attribute version_4
7 8 9 |
# File 'lib/trmnl/api/models/ip_address.rb', line 7 def version_4 @version_4 end |
#version_6 ⇒ Object (readonly)
Returns the value of attribute version_6
7 8 9 |
# File 'lib/trmnl/api/models/ip_address.rb', line 7 def version_6 @version_6 end |
Class Method Details
.for(attributes) ⇒ Object
8 9 10 |
# File 'lib/trmnl/api/models/ip_address.rb', line 8 def self.for attributes new(**attributes.transform_keys(ipv4: :version_4, ipv6: :version_6)) end |