class Isomorfeus::Puppetmaster::Cookie

Public Class Methods

new(attributes) click to toggle source
# File lib/isomorfeus/puppetmaster/cookie.rb, line 4
def initialize(attributes)
  @attributes = attributes
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/isomorfeus/puppetmaster/cookie.rb, line 8
def ==(other)
  return super unless other.is_a? String
  value == other
end
domain() click to toggle source
# File lib/isomorfeus/puppetmaster/cookie.rb, line 13
def domain
  @attributes['domain']
end
expires() click to toggle source
# File lib/isomorfeus/puppetmaster/cookie.rb, line 17
def expires
  Time.at @attributes['expires'] unless [nil, 0, -1].include? @attributes['expires']
end
http_only?() click to toggle source
# File lib/isomorfeus/puppetmaster/cookie.rb, line 21
def http_only?
  !!@attributes['httpOnly']
end
name() click to toggle source
# File lib/isomorfeus/puppetmaster/cookie.rb, line 25
def name
  @attributes['name']
end
path() click to toggle source
# File lib/isomorfeus/puppetmaster/cookie.rb, line 33
def path
  @attributes['path']
end
same_site() click to toggle source
# File lib/isomorfeus/puppetmaster/cookie.rb, line 41
def same_site
  @attributes['sameSite']
end
secure?() click to toggle source
# File lib/isomorfeus/puppetmaster/cookie.rb, line 37
def secure?
  !!@attributes['secure']
end
value() click to toggle source
# File lib/isomorfeus/puppetmaster/cookie.rb, line 29
def value
  @attributes['value']
end