Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.32 KB | None | 0 0
  1. class API
  2.     def initialize(...)
  3.         @faraday = Faraday.new(...) do |c|
  4.             c.blahblah
  5.         end
  6.     end
  7.  
  8.     class GenericAPIThing
  9.         def initialize(name)
  10.             @name = name
  11.         end
  12.  
  13.     class SpecificAPIThing < GenericAPIThing
  14.         def initialize(*)
  15.             super
  16.         end
  17.  
  18.         def actionforspecificthing(var)
  19.             @faraday.get(var)
  20.         end
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement