class V2Intuity::ResourceFilters::ResourceFilter

Constants

FILTERS

Attributes

name[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/v2_intuity/resource_filters/resource_filter.rb, line 10
def initialize(options = {})
  @name = options.fetch(options[:name], nil)

  raise 'unsupported filter' unless @name.nil? && FILTERS.key?(@name.to_sym)
end