Class: Origen::Specs::Exhibit

Inherits:
Object
  • Object
show all
Defined in:
lib/origen/specs/exhibit.rb

Overview

This class is used to store spec exhibit information used to document IP

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, type, options = {}) ⇒ Exhibit

Returns a new instance of Exhibit.



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/origen/specs/exhibit.rb', line 7

def initialize(id, type, options = {})
  @id = id
  @type = type
  @title = options[:title]
  @description = options[:description]
  @reference = options[:reference]
  @markup = options[:markup]
  @include_exhibit = true
  @include_exhibit = options[:include_exhibit] unless options[:include_exhibit].nil?
  @block_id = options[:block_id]
end

Instance Attribute Details

#block_idObject

Returns the value of attribute block_id.



5
6
7
# File 'lib/origen/specs/exhibit.rb', line 5

def block_id
  @block_id
end

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/origen/specs/exhibit.rb', line 5

def description
  @description
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/origen/specs/exhibit.rb', line 5

def id
  @id
end

#include_exhibitObject

Returns the value of attribute include_exhibit.



5
6
7
# File 'lib/origen/specs/exhibit.rb', line 5

def include_exhibit
  @include_exhibit
end

#markupObject

Returns the value of attribute markup.



5
6
7
# File 'lib/origen/specs/exhibit.rb', line 5

def markup
  @markup
end

#referenceObject

Returns the value of attribute reference.



5
6
7
# File 'lib/origen/specs/exhibit.rb', line 5

def reference
  @reference
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/origen/specs/exhibit.rb', line 5

def title
  @title
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/origen/specs/exhibit.rb', line 5

def type
  @type
end