class Hobby::RPC

Public Class Methods

new(hash = {}) click to toggle source
# File lib/hobby/rpc.rb, line 70
def initialize hash = {}
  if cors_origins = hash[:cors_origins]
    use CORS, origins: cors_origins
  else
    use CORS
  end
end