Class: MaisOrcidClient::OrcidUser
- Inherits:
-
Struct
- Object
- Struct
- MaisOrcidClient::OrcidUser
- Defined in:
- lib/mais_orcid_client.rb
Overview
Struct for ORCID-relating data returned from API.
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#last_updated ⇒ Object
Returns the value of attribute last_updated.
-
#orcidid ⇒ Object
Returns the value of attribute orcidid.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#sunetid ⇒ Object
Returns the value of attribute sunetid.
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token
20 21 22 |
# File 'lib/mais_orcid_client.rb', line 20 def access_token @access_token end |
#last_updated ⇒ Object
Returns the value of attribute last_updated
20 21 22 |
# File 'lib/mais_orcid_client.rb', line 20 def last_updated @last_updated end |
#orcidid ⇒ Object
Returns the value of attribute orcidid
20 21 22 |
# File 'lib/mais_orcid_client.rb', line 20 def orcidid @orcidid end |
#scope ⇒ Object
Returns the value of attribute scope
20 21 22 |
# File 'lib/mais_orcid_client.rb', line 20 def scope @scope end |
#sunetid ⇒ Object
Returns the value of attribute sunetid
20 21 22 |
# File 'lib/mais_orcid_client.rb', line 20 def sunetid @sunetid end |
Instance Method Details
#update? ⇒ Boolean
21 22 23 |
# File 'lib/mais_orcid_client.rb', line 21 def update? scope.include?("/activities/update") end |