Class: Xenon::Headers::Raw

Inherits:
Object
  • Object
show all
Defined in:
lib/xenon/headers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ Raw

Returns a new instance of Raw.



106
107
108
109
# File 'lib/xenon/headers.rb', line 106

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



104
105
106
# File 'lib/xenon/headers.rb', line 104

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



104
105
106
# File 'lib/xenon/headers.rb', line 104

def value
  @value
end

Instance Method Details

#to_sObject



111
112
113
# File 'lib/xenon/headers.rb', line 111

def to_s
  @value
end