Class: MaisOrcidClient::OrcidUser

Inherits:
Struct
  • Object
show all
Defined in:
lib/mais_orcid_client.rb

Overview

Struct for ORCID-relating data returned from API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token

Returns:

  • (Object)

    the current value of access_token



20
21
22
# File 'lib/mais_orcid_client.rb', line 20

def access_token
  @access_token
end

#last_updatedObject

Returns the value of attribute last_updated

Returns:

  • (Object)

    the current value of last_updated



20
21
22
# File 'lib/mais_orcid_client.rb', line 20

def last_updated
  @last_updated
end

#orcididObject

Returns the value of attribute orcidid

Returns:

  • (Object)

    the current value of orcidid



20
21
22
# File 'lib/mais_orcid_client.rb', line 20

def orcidid
  @orcidid
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



20
21
22
# File 'lib/mais_orcid_client.rb', line 20

def scope
  @scope
end

#sunetidObject

Returns the value of attribute sunetid

Returns:

  • (Object)

    the current value of sunetid



20
21
22
# File 'lib/mais_orcid_client.rb', line 20

def sunetid
  @sunetid
end

Instance Method Details

#update?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/mais_orcid_client.rb', line 21

def update?
  scope.include?("/activities/update")
end