Class: SPARQL::Client::Update::Operation

Inherits:
Object
  • Object
show all
Defined in:
vendor/bundler/ruby/2.7.0/bundler/gems/sparql-client-622ad17a89b4/lib/sparql/client/update.rb

Direct Known Subclasses

Add, Clear, Copy, Create, DeleteData, DeleteInsert, InsertData, Load, Move

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*arguments, **options) ⇒ Operation

Returns a new instance of Operation.



134
135
136
137
138
139
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/sparql-client-622ad17a89b4/lib/sparql/client/update.rb', line 134

def initialize(*arguments, **options)
  @options = options.dup
  unless arguments.empty?
    send(arguments.shift, *arguments)
  end
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



132
133
134
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/sparql-client-622ad17a89b4/lib/sparql/client/update.rb', line 132

def options
  @options
end

Instance Method Details

#expects_statements?true

Generic Update always returns statements

Returns:

  • (true)


145
146
147
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/sparql-client-622ad17a89b4/lib/sparql/client/update.rb', line 145

def expects_statements?
  true
end

#silentObject

Set silent option



151
152
153
154
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/sparql-client-622ad17a89b4/lib/sparql/client/update.rb', line 151

def silent
  self.options[:silent] = true
  self
end