Module: Pixiv::Illust::WithClient

Includes:
Page::WithClient
Defined in:
lib/pixiv/illust.rb

Instance Attribute Summary

Attributes included from Page::WithClient

#client

Instance Method Summary collapse

Instance Method Details

#download_illust(io_or_filename, size = :original) ⇒ Object

Download illust

See Client#download_illust for the detail.



93
94
95
# File 'lib/pixiv/illust.rb', line 93

def download_illust(io_or_filename, size = :original)
  client.download_illust(self, io_or_filename, size)
end

#download_manga(pattern, &block) ⇒ Object

Download manga

See Client#download_manga for the detail.



100
101
102
# File 'lib/pixiv/illust.rb', line 100

def download_manga(pattern, &block)
  client.download_manga(self, pattern, &block)
end

#memberPixiv::Member Also known as: author

Returns:



83
84
85
86
# File 'lib/pixiv/illust.rb', line 83

def member
  attrs = {member_id: member_id, member_name: member_name}
  Member.lazy_new(attrs) { client.agent.get(Member.url(member_id)) }
end