Class: ASPSMS::Request::UnlockOriginator
- Defined in:
- lib/aspsms.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#originator ⇒ Object
Returns the value of attribute originator.
Attributes inherited from Abstract
Instance Method Summary collapse
- #each_element {|REXML::Element.new('Originator'). add_text(@cfg.utf8(originator))| ... } ⇒ Object
-
#initialize(cfg) ⇒ UnlockOriginator
constructor
A new instance of UnlockOriginator.
Methods inherited from Abstract
Constructor Details
#initialize(cfg) ⇒ UnlockOriginator
Returns a new instance of UnlockOriginator.
241 242 243 244 245 |
# File 'lib/aspsms.rb', line 241 def initialize(cfg) super(cfg) @originator = @cfg.originator @code = '' end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
240 241 242 |
# File 'lib/aspsms.rb', line 240 def code @code end |
#originator ⇒ Object
Returns the value of attribute originator.
240 241 242 |
# File 'lib/aspsms.rb', line 240 def originator @originator end |
Instance Method Details
#each_element {|REXML::Element.new('Originator'). add_text(@cfg.utf8(originator))| ... } ⇒ Object
247 248 249 250 251 252 |
# File 'lib/aspsms.rb', line 247 def each_element yield REXML::Element.new('Originator'). add_text(@cfg.utf8(originator)) yield REXML::Element.new('OriginatorUnlockCode'). add_text(@cfg.utf8(code)) end |