Sha256: 837385116e676e6bbb568a79b8755b601dda7acff29bf97b9158645f5e91f59e
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 Bytes
Contents
module BunnyApp class Platform @platform_create_mutation = <<-'GRAPHQL' mutation platformCreate ($attributes: PlatformAttributes!) { platformCreate (attributes: $attributes) { platform { id name code } errors } } GRAPHQL def self.create(name:, code:) variables = { attributes: { name:, code: } } res = Client.new.query(@platform_create_mutation, variables) res['data']['platformCreate']['platform'] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bunny_app-2.0.4 | lib/bunny_app/platform.rb |
bunny_app-2.0.1 | lib/bunny_app/platform.rb |
bunny_app-2.0.0 | lib/bunny_app/platform.rb |