Class: ShellDataReportingApIs::PricedTransactionReqV2PeriodEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_period_enum.rb

Overview

Pass below one of the value as per the required transaction period 1. Last 7 Days 2. Last 30 Days 3. Last 90 Days

Constant Summary collapse

PRICED_TRANSACTION_REQ_V2_PERIOD_ENUM =
[
  # TODO: Write general description for ENUM_1
  ENUM_1 = 1,

  # TODO: Write general description for ENUM_2
  ENUM_2 = 2,

  # TODO: Write general description for ENUM_3
  ENUM_3 = 3
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



21
22
23
24
25
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_period_enum.rb', line 21

def self.validate(value)
  return false if value.nil?

  PRICED_TRANSACTION_REQ_V2_PERIOD_ENUM.include?(value)
end