Sha256: b174c0dabca97b145f0122add459ff7783478d4345f5d4c406472efc779050a5

Contents?: true

Size: 218 Bytes

Versions: 14

Compression:

Stored size: 218 Bytes

Contents

module HaveAPI::GoClient
  module Utils
    # Remove underscores and capitalize names
    # @param v [String]
    # @return [String]
    def camelize(v)
      v.to_s.split('_').map(&:capitalize).join
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
haveapi-go-client-0.25.0 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.24.0 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.23.7 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.23.6 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.23.5 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.23.4 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.23.3 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.23.2 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.23.1 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.23.0 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.22.1 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.22.0 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.21.1 lib/haveapi/go_client/utils.rb
haveapi-go-client-0.21.0 lib/haveapi/go_client/utils.rb