Class: Riddl::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby/riddl/header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/ruby/riddl/header.rb', line 3

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/ruby/riddl/header.rb', line 3

def value
  @value
end