Skip to content

Commit

Permalink
minor refactor: reopen class ResourceBase before defining instance me…
Browse files Browse the repository at this point in the history
…theds

this is just to help reorient the reader after leaving the class methods.
  • Loading branch information
notEthan committed Feb 12, 2022
1 parent 581ff83 commit 3d66718
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/scorpio/resource_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ def response_object_to_instances(object, initialize_options = {})
end
end
end
end

class ResourceBase
def initialize(attributes = {}, options = {})
@attributes = JSI::Util.stringify_symbol_keys(attributes)
@options = JSI::Util.stringify_symbol_keys(options)
Expand Down

0 comments on commit 3d66718

Please sign in to comment.