class Mangadex::Author
Public Class Methods
create(**args)
click to toggle source
# File lib/mangadex/author.rb, line 54 def self.create(**args) Mangadex::Internal::Request.post( '/author', payload: Mangadex::Internal::Definition.validate(args, { name: { accepts: String, required: true }, version: { accepts: Integer }, }) ) end
delete(id)
click to toggle source
# File lib/mangadex/author.rb, line 106 def self.delete(id) Mangadex::Internal::Definition.must(id) Mangadex::Internal::Request.delete( format('/author/%{id}', id: id) ) end
get(id, **args)
click to toggle source
# File lib/mangadex/author.rb, line 70 def self.get(id, **args) Mangadex::Internal::Definition.must(id) Mangadex::Internal::Request.get( format('/author/%{id}', id: id), Mangadex::Internal::Definition.validate(args, { includes: { accepts: [String] }, }) ) end
Also aliased as: view
inspect_attributes()
click to toggle source
# File lib/mangadex/author.rb, line 114 def self.inspect_attributes [:name] end
list(**args)
click to toggle source
# File lib/mangadex/author.rb, line 34 def self.list(**args) Mangadex::Internal::Request.get( '/author', Mangadex::Internal::Definition.validate(args, { limit: { accepts: Integer }, offset: { accepts: Integer }, ids: { accepts: [String] }, name: { accepts: String }, order: { accepts: Hash }, includes: { accepts: [String] }, }) ) end
update(id, **args)
click to toggle source
# File lib/mangadex/author.rb, line 87 def self.update(id, **args) Mangadex::Internal::Definition.must(id) Mangadex::Internal::Request.put( format('/author/%{id}', id: id), payload: Mangadex::Internal::Definition.validate(args, { name: { accepts: String }, version: { accepts: Integer, required: true }, }) ) end
Public Instance Methods
artist?()
click to toggle source
# File lib/mangadex/author.rb, line 126 def artist? false end