Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added parameter for DB constructor to be named constructor #488

Merged
merged 3 commits into from
Jul 10, 2022

Conversation

gewenyu99
Copy link

New generated examples will look like this:

require 'appwrite'

client = Appwrite::Client.new

client
    .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
    .set_project('5df5acd0d48c2') # Your project ID

databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')

response = databases.create(name: '[NAME]')

puts response.inspect

@gewenyu99 gewenyu99 requested a review from Meldiron July 4, 2022 19:50
Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
@gewenyu99 gewenyu99 merged commit f7e9d34 into master Jul 10, 2022
@lohanidamodar lohanidamodar deleted the fix-ruby-db-template branch March 2, 2023 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants