Class: Bankjob::Scraper::ScraperRule

Inherits:
Struct
  • Object
show all
Defined in:
lib/bankjob/scraper.rb

Overview

ScraperRule is a struct used for holding a rule body with its priority. Users can create transaction rules in their Scraper subclasses using the Scraper#ransaction_rule method.

Instance Attribute Summary collapse

Instance Attribute Details

#priorityObject

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



295
296
297
# File 'lib/bankjob/scraper.rb', line 295

def priority
  @priority
end

#rule_bodyObject

Returns the value of attribute rule_body

Returns:

  • (Object)

    the current value of rule_body



295
296
297
# File 'lib/bankjob/scraper.rb', line 295

def rule_body
  @rule_body
end