Class: Cirneco::DataCenter
- Inherits:
-
Object
- Object
- Cirneco::DataCenter
- Defined in:
- lib/cirneco/data_center.rb
Constant Summary
Constants included from Utils
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(prefix:, username:, password:, **options) ⇒ DataCenter
constructor
A new instance of DataCenter.
Methods included from Utils
#decode_doi, #encode_doi, #generate_accession_number, #generate_state_change_template, #generate_transfer_template, #get_dois_by_prefix
Methods included from Api
#delete_metadata, #get_doi, #get_dois, #get_media, #get_metadata, #get_rest_doi, #post_media, #post_metadata, #put_doi, #put_metadata, #transfer_doi, #update_rest_doi
Constructor Details
#initialize(prefix:, username:, password:, **options) ⇒ DataCenter
Returns a new instance of DataCenter.
19 20 21 22 23 |
# File 'lib/cirneco/data_center.rb', line 19 def initialize(prefix:, username:, password:, **) @prefix = prefix @username = username @password = password end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
17 18 19 |
# File 'lib/cirneco/data_center.rb', line 17 def password @password end |
#prefix ⇒ Object
Returns the value of attribute prefix.
17 18 19 |
# File 'lib/cirneco/data_center.rb', line 17 def prefix @prefix end |
#username ⇒ Object
Returns the value of attribute username.
17 18 19 |
# File 'lib/cirneco/data_center.rb', line 17 def username @username end |