Class: RubyOmx::CancellationHistoryRequest
- Defined in:
- lib/ruby_omx/request/cancellation_history_request.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ CancellationHistoryRequest
constructor
A new instance of CancellationHistoryRequest.
Methods inherited from Response
Methods inherited from Node
Constructor Details
#initialize(attrs = {}) ⇒ CancellationHistoryRequest
Returns a new instance of CancellationHistoryRequest.
5 6 7 8 9 10 11 12 |
# File 'lib/ruby_omx/request/cancellation_history_request.rb', line 5 def initialize(attrs={}) return super unless attrs.any? raise MissingRequestOptions if attrs[:start_date].nil? || attrs[:end_date].nil? super self.version = attrs[:version] ||= '1.00' self.udi_parameters << RubyOmx::UDIParameter.new({:key=>'StartDate', :value=>attrs[:start_date]}) self.udi_parameters << RubyOmx::UDIParameter.new({:key=>'EndDate', :value=>attrs[:end_date] }) end |
Instance Attribute Details
#end_date ⇒ Object
Returns the value of attribute end_date.
14 15 16 |
# File 'lib/ruby_omx/request/cancellation_history_request.rb', line 14 def end_date @end_date end |
#start_date ⇒ Object
Returns the value of attribute start_date.
14 15 16 |
# File 'lib/ruby_omx/request/cancellation_history_request.rb', line 14 def start_date @start_date end |