Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class API
- def initialize(...)
- @faraday = Faraday.new(...) do |c|
- c.blahblah
- end
- end
- class GenericAPIThing
- def initialize(name)
- @name = name
- end
- class SpecificAPIThing < GenericAPIThing
- def initialize(*)
- super
- end
- def actionforspecificthing(var)
- @faraday.get(var)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement