struct

ECS::LogEntry::UserAgent

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new

Initialize all values as nil

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

device(value : Device)

A chainable setter for device

Source
device
Source
device

Initialize a new Device, yield it to the block

Source
device=(device : Device | Nil)
Source
name(new_value : String)

A chainable setter for name

Source
name

user_agent.name

Name of the user agent.

Level: Extended Type: Keyword Example:

Safari
Source
name=(name : String | Nil)

user_agent.name

Name of the user agent.

Level: Extended Type: Keyword Example:

Safari
Source
original(new_value : String)

A chainable setter for original

Source
original

user_agent.original

Unparsed user_agent string.

Level: Extended Type: Keyword Example:

Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1
Source
original=(original : String | Nil)

user_agent.original

Unparsed user_agent string.

Level: Extended Type: Keyword Example:

Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1
Source
os(value : Os)

A chainable setter for os

Source
os

Initialize a new Os, yield it to the block

Source
os=(os : Os | Nil)
Source
version(new_value : String)

A chainable setter for version

Source
version

user_agent.version

Version of the user agent.

Level: Extended Type: Keyword Example:

12.0
Source
version=(version : String | Nil)

user_agent.version

Version of the user agent.

Level: Extended Type: Keyword Example:

12.0
Source

Nested types