Class: EBICheck::Client
- Inherits:
-
HTTPClients::BaseClient
- Object
- HTTPClients::BaseClient
- EBICheck::Client
- Defined in:
- lib/ebi_check/client.rb
Class Method Summary collapse
-
.for_ega_samples ⇒ EBICheck::Client
Creates a client for accessing EGA sample data.
-
.for_ega_studies ⇒ EBICheck::Client
Creates a client for accessing EGA study data.
-
.for_ena_samples ⇒ EBICheck::Client
Creates a client for accessing ENA sample data.
-
.for_ena_studies ⇒ EBICheck::Client
Creates a client for accessing ENA study data.
Instance Method Summary collapse
-
#initialize(url, options) ⇒ Client
constructor
Initializes a new EBICheck::Client instance.
-
#inspect ⇒ String
Returns a string representation of the client instance with sensitive information (such as the password) redacted.
Constructor Details
#initialize(url, options) ⇒ Client
Initializes a new EBICheck::Client instance.
36 37 38 39 40 |
# File 'lib/ebi_check/client.rb', line 36 def initialize(url, ) super() @url = File.join(url, '/') # Add trailing slash @options = end |
Class Method Details
.for_ega_samples ⇒ EBICheck::Client
Creates a client for accessing EGA sample data.
74 75 76 |
# File 'lib/ebi_check/client.rb', line 74 def for_ega_samples new(samples_url, ) end |
.for_ega_studies ⇒ EBICheck::Client
Creates a client for accessing EGA study data.
80 81 82 |
# File 'lib/ebi_check/client.rb', line 80 def for_ega_studies new(studies_url, ) end |
.for_ena_samples ⇒ EBICheck::Client
Creates a client for accessing ENA sample data.
92 93 94 |
# File 'lib/ebi_check/client.rb', line 92 def for_ena_samples new(samples_url, ) end |
.for_ena_studies ⇒ EBICheck::Client
Creates a client for accessing ENA study data.
86 87 88 |
# File 'lib/ebi_check/client.rb', line 86 def for_ena_studies new(studies_url, ) end |
Instance Method Details
#inspect ⇒ String
Returns a string representation of the client instance with sensitive information (such as the password) redacted.
47 48 49 50 51 |
# File 'lib/ebi_check/client.rb', line 47 def inspect = .dup [:password] = '[FILTERED]' if .key?(:password) "#<#{self.class}:0x#{object_id.to_s(16)} @options=#{.inspect} @url=#{@url.inspect}>" end |