Class: Amsi::RequestSection::MoveinsFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/amsi/request_section/moveins_filter.rb

Overview

Generate the move in filter elements of an Amsi request

Instance Method Summary collapse

Constructor Details

#initialize(property_id:, marketing_source_code:, from_date:, through_date:) ⇒ MoveinsFilter

Returns a new instance of MoveinsFilter.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/amsi/request_section/moveins_filter.rb', line 5

def initialize(
  property_id:,
  marketing_source_code:,
  from_date:,
  through_date:
)
  @property_id = property_id
  @marketing_source_code = marketing_source_code
  @from_date = from_date
  @through_date = through_date
end

Instance Method Details

#generate(xml_builder) ⇒ Object



17
18
19
20
21
# File 'lib/amsi/request_section/moveins_filter.rb', line 17

def generate(xml_builder)
  xml_builder.XMLData do |xml_data|
    xml_data.cdata edex.to_s
  end
end