Class: Cirneco::DataCenter

Inherits:
Object
  • Object
show all
Includes:
Bolognese::DoiUtils, Bolognese::Utils, Api, Base, Utils
Defined in:
lib/cirneco/data_center.rb

Constant Summary

Constants included from Utils

Utils::UPPER_LIMIT

Instance Attribute Summary collapse

Instance Method Summary collapse

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:, **options)
  @prefix = prefix
  @username = username
  @password = password
end

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



17
18
19
# File 'lib/cirneco/data_center.rb', line 17

def password
  @password
end

#prefixObject

Returns the value of attribute prefix.



17
18
19
# File 'lib/cirneco/data_center.rb', line 17

def prefix
  @prefix
end

#usernameObject

Returns the value of attribute username.



17
18
19
# File 'lib/cirneco/data_center.rb', line 17

def username
  @username
end