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.



97
98
99
# File 'lib/pixiv/illust.rb', line 97

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.



104
105
106
# File 'lib/pixiv/illust.rb', line 104

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

#memberPixiv::Member Also known as: author

Returns:



87
88
89
90
# File 'lib/pixiv/illust.rb', line 87

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