Class: Esaj::Query
- Inherits:
-
Object
- Object
- Esaj::Query
- Defined in:
- lib/esaj/query.rb
Instance Attribute Summary collapse
-
#forum ⇒ Object
readonly
Returns the value of attribute forum.
-
#oab_code ⇒ Object
readonly
Returns the value of attribute oab_code.
Instance Method Summary collapse
-
#initialize(oab_code:, forum:) ⇒ Query
constructor
A new instance of Query.
- #perform ⇒ Object
Constructor Details
#initialize(oab_code:, forum:) ⇒ Query
Returns a new instance of Query.
8 9 10 11 |
# File 'lib/esaj/query.rb', line 8 def initialize(oab_code:, forum:) @oab_code = oab_code @forum = forum end |
Instance Attribute Details
#forum ⇒ Object (readonly)
Returns the value of attribute forum.
6 7 8 |
# File 'lib/esaj/query.rb', line 6 def forum @forum end |
#oab_code ⇒ Object (readonly)
Returns the value of attribute oab_code.
6 7 8 |
# File 'lib/esaj/query.rb', line 6 def oab_code @oab_code end |
Instance Method Details
#perform ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/esaj/query.rb', line 13 def perform begin lawsuits.map(&:attributes) rescue RemoteError => error { error: error. } end end |