Class: Unified2::Signature
- Inherits:
-
Object
- Object
- Unified2::Signature
- Defined in:
- lib/unified2/signature.rb
Overview
Signature
Instance Attribute Summary collapse
-
#blank ⇒ Object
Returns the value of attribute blank.
-
#generator ⇒ Object
Returns the value of attribute generator.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#revision ⇒ Object
Returns the value of attribute revision.
Instance Method Summary collapse
-
#blank? ⇒ true, false
Blank?.
-
#initialize(signature = {}) ⇒ Signature
constructor
Initialize signature object.
-
#references ⇒ Array<String,String>
References.
-
#to_s ⇒ String
to_string.
Constructor Details
#initialize(signature = {}) ⇒ Signature
Initialize signature object
23 24 25 26 27 28 29 |
# File 'lib/unified2/signature.rb', line 23 def initialize(signature={}) @id = signature[:signature_id] || 0 @generator = signature[:generator_id] @revision = signature[:revision] @name = signature[:name].strip @blank = signature[:blank] || false end |
Instance Attribute Details
#blank ⇒ Object
Returns the value of attribute blank.
10 11 12 |
# File 'lib/unified2/signature.rb', line 10 def blank @blank end |
#generator ⇒ Object
Returns the value of attribute generator.
10 11 12 |
# File 'lib/unified2/signature.rb', line 10 def generator @generator end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/unified2/signature.rb', line 10 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/unified2/signature.rb', line 10 def name @name end |
#revision ⇒ Object
Returns the value of attribute revision.
10 11 12 |
# File 'lib/unified2/signature.rb', line 10 def revision @revision end |