Class: Riddl::Header
- Inherits:
-
Object
- Object
- Riddl::Header
- Defined in:
- lib/ruby/riddl/header.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Header
constructor
A new instance of Header.
Constructor Details
#initialize(name, value) ⇒ Header
Returns a new instance of Header.
4 5 6 7 |
# File 'lib/ruby/riddl/header.rb', line 4 def initialize(name,value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ruby/riddl/header.rb', line 3 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/ruby/riddl/header.rb', line 3 def value @value end |