Class: Cirneco::Work
- Inherits:
-
Bolognese::Metadata
- Object
- Bolognese::Metadata
- Cirneco::Work
- Defined in:
- lib/cirneco/work.rb
Constant Summary
Constants included from Utils
Instance Attribute Summary collapse
-
#media ⇒ Object
readonly
Returns the value of attribute media.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(input: nil, from: nil, **options) ⇒ Work
constructor
A new instance of Work.
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(input: nil, from: nil, **options) ⇒ Work
Returns a new instance of Work.
14 15 16 17 18 19 20 |
# File 'lib/cirneco/work.rb', line 14 def initialize(input: nil, from: nil, **) @media = [:media] @username = [:username] @password = [:password] return super(input: input, from: from, doi: [:doi]) end |
Instance Attribute Details
#media ⇒ Object (readonly)
Returns the value of attribute media.
12 13 14 |
# File 'lib/cirneco/work.rb', line 12 def media @media end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
12 13 14 |
# File 'lib/cirneco/work.rb', line 12 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
12 13 14 |
# File 'lib/cirneco/work.rb', line 12 def username @username end |