Sha256: e6ffebcdd2d881c590b2f4ba13286ef3b4882962d4e03b0c6892f1d722d3fec5

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module NubankSdk
  #
  # Utils
  module Utils
    #
    # read graphQL query from file in ../graphql/{path}/{query}.gql
    #
    # @param [String] path - path to the query account, credit
    # @param [String] query - query name
    #
    # @return [String]
    def self.read_graphql_query(path, query)
      File.read(File.join('.', 'lib', 'graphql', path, "#{query}.gql"))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nubank_sdk-0.7.0 lib/nubank_sdk/utils.rb