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.
7 8 9 10 |
# File 'lib/esaj/query.rb', line 7 def initialize(oab_code:, forum:) @oab_code = oab_code @forum = forum end |
Instance Attribute Details
#forum ⇒ Object (readonly)
Returns the value of attribute forum.
5 6 7 |
# File 'lib/esaj/query.rb', line 5 def forum @forum end |
#oab_code ⇒ Object (readonly)
Returns the value of attribute oab_code.
5 6 7 |
# File 'lib/esaj/query.rb', line 5 def oab_code @oab_code end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/esaj/query.rb', line 12 def perform begin scraped_results rescue RemoteError => error { error: error. } end end |