Class: SPARQL::Client::Update::Operation
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb
Direct Known Subclasses
Add, Clear, Copy, Create, DeleteData, DeleteInsert, InsertData, Load, Move
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#expects_statements? ⇒ true
Generic Update always returns statements.
-
#initialize(*arguments, **options) ⇒ Operation
constructor
A new instance of Operation.
-
#silent ⇒ Object
Set
silent
option.
Constructor Details
#initialize(*arguments, **options) ⇒ Operation
Returns a new instance of Operation.
134 135 136 137 138 139 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 134 def initialize(*arguments, **) @options = .dup unless arguments.empty? send(arguments.shift, *arguments) end end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
132 133 134 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 132 def @options end |
Instance Method Details
#expects_statements? ⇒ true
Generic Update always returns statements
145 146 147 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 145 def expects_statements? true end |
#silent ⇒ Object
Set silent
option
151 152 153 154 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 151 def silent self.[:silent] = true self end |