Class: ThePlaidApi::ReportType

Inherits:
Object
  • Object
show all
Defined in:
lib/the_plaid_api/models/report_type.rb

Overview

The report type. It can be ‘asset`. Income report types are not yet supported.

Constant Summary collapse

REPORT_TYPE =
[
  # TODO: Write general description for ASSET
  ASSET = 'asset'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = ASSET) ⇒ Object



21
22
23
24
25
# File 'lib/the_plaid_api/models/report_type.rb', line 21

def self.from_value(value, default_value = ASSET)
  return default_value if value.nil?

  default_value
end

.validate(value) ⇒ Object



15
16
17
18
19
# File 'lib/the_plaid_api/models/report_type.rb', line 15

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

  REPORT_TYPE.include?(value)
end