Class: SML::PublicClose::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-sml/sml-publicclose.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_signatureObject

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_aObject



44
45
46
# File 'lib/ruby-sml/sml-publicclose.rb', line 44

def to_a
  return [] << global_signature
end