Class: Amsi::Request::GetMoveinsByFirstMarketingSource

Inherits:
Base
  • Object
show all
Defined in:
lib/amsi/request/get_moveins_by_first_marketing_source.rb

Overview

Retrieve move ins for a property between a specified data range and for a specified marketing source code.

Required initializer parameters:

@param property_id [String] Max of 50 characters according to their
  docs, this is AMSI's ID of the property we want to fetch move ins for.
@param marketing_source_code [String] Max of 3 characters according to
  their docs, this is the code that corresponds to the marketing source
  for which we want to fetch move ins. The list of marketing sources
  that a given property supports can be found with a GetPropertyList
  request.
@param from_date, through_date [Date] Together, these two params define
  the interval from which to fetch move ins.

Instance Method Summary collapse

Instance Method Details

#after_initialize(from_date:, marketing_source_code:, property_id:, through_date:) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/amsi/request/get_moveins_by_first_marketing_source.rb', line 22

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