Class: Unified2::Signature
- Inherits:
-
Object
- Object
- Unified2::Signature
- Defined in:
- lib/unified2/signature.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#references ⇒ Object
Returns the value of attribute references.
-
#revision ⇒ Object
Returns the value of attribute revision.
Instance Method Summary collapse
- #blank? ⇒ Boolean
-
#initialize(signature = {}) ⇒ Signature
constructor
A new instance of Signature.
Constructor Details
#initialize(signature = {}) ⇒ Signature
Returns a new instance of Signature.
7 8 9 10 11 12 13 |
# File 'lib/unified2/signature.rb', line 7 def initialize(signature={}) @id = signature[:signature_id] || 0 @revision = signature[:revision] @name = signature[:name].strip @references = signature[:references] @blank = signature[:blank] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/unified2/signature.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/unified2/signature.rb', line 5 def name @name end |
#references ⇒ Object
Returns the value of attribute references.
5 6 7 |
# File 'lib/unified2/signature.rb', line 5 def references @references end |
#revision ⇒ Object
Returns the value of attribute revision.
5 6 7 |
# File 'lib/unified2/signature.rb', line 5 def revision @revision end |
Instance Method Details
#blank? ⇒ Boolean
15 16 17 |
# File 'lib/unified2/signature.rb', line 15 def blank? @blank end |