class Zotero::Entities::Creator
Attributes
first_name[R]
kind[R]
last_name[R]
Public Class Methods
new(data)
click to toggle source
# File lib/zotero/entities/creator.rb, line 4 def initialize(data) @last_name = data['lastName'] @first_name = data['firstName'] @kind = data['creatorType'] end
Public Instance Methods
editor?()
click to toggle source
# File lib/zotero/entities/creator.rb, line 14 def editor? 'editor' == kind end
to_h()
click to toggle source
# File lib/zotero/entities/creator.rb, line 22 def to_h { first_name: first_name, last_name: last_name, kind: kind }.symbolize_keys end
translator?()
click to toggle source
# File lib/zotero/entities/creator.rb, line 18 def translator? 'translator' == kind end