Class: SML::PublicClose::Response
- Inherits:
-
Object
- Object
- SML::PublicClose::Response
- Defined in:
- lib/ruby-sml/sml-publicclose.rb
Instance Attribute Summary collapse
-
#global_signature ⇒ Object
Returns the value of attribute global_signature.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(global_signature) ⇒ Response
constructor
A new instance of Response.
- #to_a ⇒ Object
Constructor Details
#initialize(global_signature) ⇒ Response
Returns a new instance of Response.
31 32 33 |
# File 'lib/ruby-sml/sml-publicclose.rb', line 31 def initialize(global_signature) @global_signature = global_signature end |
Instance Attribute Details
#global_signature ⇒ Object
Returns the value of attribute global_signature.
29 30 31 |
# File 'lib/ruby-sml/sml-publicclose.rb', line 29 def global_signature @global_signature end |
Class Method Details
.construct(array_rep) ⇒ Object
35 36 37 38 |
# File 'lib/ruby-sml/sml-publicclose.rb', line 35 def self.construct(array_rep) return nil if array_rep.nil? return SML::PublicClose::Response.new(array_rep.shift) end |
.pconstruct(o = {}) ⇒ Object
40 41 42 |
# File 'lib/ruby-sml/sml-publicclose.rb', line 40 def self.pconstruct(o={}) return SML::PublicClose::Response.new(o[:global_signature]) end |
Instance Method Details
#to_a ⇒ Object
44 45 46 |
# File 'lib/ruby-sml/sml-publicclose.rb', line 44 def to_a return [] << global_signature end |