Class: Mushikago::Mitsubachi::Cookie

Inherits:
Struct
  • Object
show all
Defined in:
lib/mushikago/mitsubachi/cookie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#domainObject

Returns the value of attribute domain

Returns:

  • (Object)

    the current value of domain



5
6
7
# File 'lib/mushikago/mitsubachi/cookie.rb', line 5

def domain
  @domain
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/mushikago/mitsubachi/cookie.rb', line 5

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



5
6
7
# File 'lib/mushikago/mitsubachi/cookie.rb', line 5

def path
  @path
end

#secureObject

Returns the value of attribute secure

Returns:

  • (Object)

    the current value of secure



5
6
7
# File 'lib/mushikago/mitsubachi/cookie.rb', line 5

def secure
  @secure
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



5
6
7
# File 'lib/mushikago/mitsubachi/cookie.rb', line 5

def value
  @value
end

Instance Method Details

#to_json(*args) ⇒ Object



6
7
8
# File 'lib/mushikago/mitsubachi/cookie.rb', line 6

def to_json *args
  {:name => name, :value => value, :domain => domain, :path => path, :secure => secure}.to_json(args)
end