Class: Fairdom::OpenbisApi::OpenbisQuery
- Inherits:
-
Object
- Object
- Fairdom::OpenbisApi::OpenbisQuery
- Defined in:
- lib/fairdom/openbis_api/openbis_query.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#is_test ⇒ Object
readonly
Returns the value of attribute is_test.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
- #command_option_key ⇒ Object
-
#initialize(token, is_test = false) ⇒ OpenbisQuery
constructor
A new instance of OpenbisQuery.
- #query(options) ⇒ Object
Constructor Details
#initialize(token, is_test = false) ⇒ OpenbisQuery
8 9 10 11 |
# File 'lib/fairdom/openbis_api/openbis_query.rb', line 8 def initialize(token, is_test = false) @token = token @is_test = is_test end |
Instance Attribute Details
#is_test ⇒ Object (readonly)
Returns the value of attribute is_test.
6 7 8 |
# File 'lib/fairdom/openbis_api/openbis_query.rb', line 6 def is_test @is_test end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
6 7 8 |
# File 'lib/fairdom/openbis_api/openbis_query.rb', line 6 def token @token end |
Instance Method Details
#command_option_key ⇒ Object
17 18 19 |
# File 'lib/fairdom/openbis_api/openbis_query.rb', line 17 def command_option_key 'query' end |
#query(options) ⇒ Object
13 14 15 |
# File 'lib/fairdom/openbis_api/openbis_query.rb', line 13 def query() execute() end |