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.



126
127
128
# File 'lib/pixiv/illust.rb', line 126

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.



133
134
135
# File 'lib/pixiv/illust.rb', line 133

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

#memberPixiv::Member Also known as: author

Returns:



116
117
118
119
# File 'lib/pixiv/illust.rb', line 116

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