Class: CookieSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/model/cookie_settings.rb

Overview

This source code is licensed under the license found in the LICENSE file in the root directory of this source tree.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value, domain, max_age) ⇒ CookieSettings

Returns a new instance of CookieSettings.



9
10
11
12
13
14
# File 'lib/model/cookie_settings.rb', line 9

def initialize(name, value, domain, max_age)
  @name = name
  @value = value
  @domain = domain
  @max_age = max_age
end

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



8
9
10
# File 'lib/model/cookie_settings.rb', line 8

def domain
  @domain
end

#max_ageObject

Returns the value of attribute max_age.



8
9
10
# File 'lib/model/cookie_settings.rb', line 8

def max_age
  @max_age
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/model/cookie_settings.rb', line 8

def name
  @name
end

#valueObject

Returns the value of attribute value.



8
9
10
# File 'lib/model/cookie_settings.rb', line 8

def value
  @value
end