Reference documentation and code samples for the Chronicle V1 API class Google::Backstory::Browser::Cookie.
Browser cookie.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#domain
def domain() -> ::String
Returns
- (::String) — The domain for which the cookie is valid.
#domain=
def domain=(value) -> ::String
Parameter
- value (::String) — The domain for which the cookie is valid.
Returns
- (::String) — The domain for which the cookie is valid.
#expiration_time
def expiration_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — The date and time when the cookie will expire.
#expiration_time=
def expiration_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — The date and time when the cookie will expire.
Returns
- (::Google::Protobuf::Timestamp) — The date and time when the cookie will expire.
#http_only
def http_only() -> ::Boolean
Returns
- (::Boolean) — Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).
#http_only=
def http_only=(value) -> ::Boolean
Parameter
- value (::Boolean) — Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).
Returns
- (::Boolean) — Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).
#max_age
def max_age() -> ::Integer
Returns
- (::Integer) — The maximum age of the cookie in seconds.
#max_age=
def max_age=(value) -> ::Integer
Parameter
- value (::Integer) — The maximum age of the cookie in seconds.
Returns
- (::Integer) — The maximum age of the cookie in seconds.
#name
def name() -> ::String
Returns
- (::String) — The unique name identifying the cookie.
#name=
def name=(value) -> ::String
Parameter
- value (::String) — The unique name identifying the cookie.
Returns
- (::String) — The unique name identifying the cookie.
#partitioned
def partitioned() -> ::Boolean
Returns
- (::Boolean) — Shows if the cookies is stored using partitioned storage.
#partitioned=
def partitioned=(value) -> ::Boolean
Parameter
- value (::Boolean) — Shows if the cookies is stored using partitioned storage.
Returns
- (::Boolean) — Shows if the cookies is stored using partitioned storage.
#path
def path() -> ::String
Returns
- (::String) — The URL path for which the cookie is valid.
#path=
def path=(value) -> ::String
Parameter
- value (::String) — The URL path for which the cookie is valid.
Returns
- (::String) — The URL path for which the cookie is valid.
#same_site
def same_site() -> ::Google::Backstory::Browser::Cookie::CookieSameSite
Returns
- (::Google::Backstory::Browser::Cookie::CookieSameSite) — Affects cross-site request behavior.
#same_site=
def same_site=(value) -> ::Google::Backstory::Browser::Cookie::CookieSameSite
Parameter
- value (::Google::Backstory::Browser::Cookie::CookieSameSite) — Affects cross-site request behavior.
Returns
- (::Google::Backstory::Browser::Cookie::CookieSameSite) — Affects cross-site request behavior.
#secure
def secure() -> ::Boolean
Returns
- (::Boolean) — Indicates if the cookie should only be sent over secure HTTPS connections.
#secure=
def secure=(value) -> ::Boolean
Parameter
- value (::Boolean) — Indicates if the cookie should only be sent over secure HTTPS connections.
Returns
- (::Boolean) — Indicates if the cookie should only be sent over secure HTTPS connections.
#session
def session() -> ::Boolean
Returns
- (::Boolean) — Indicates if the cookie is persistent.
#session=
def session=(value) -> ::Boolean
Parameter
- value (::Boolean) — Indicates if the cookie is persistent.
Returns
- (::Boolean) — Indicates if the cookie is persistent.
#value
def value() -> ::String
Returns
- (::String) — The data stored within the cookie.
#value=
def value=(value) -> ::String
Parameter
- value (::String) — The data stored within the cookie.
Returns
- (::String) — The data stored within the cookie.