class PixivApi::Response::Friend

Attributes

account[R]
id[R]
name[R]
user_id[R]

Public Class Methods

new(response, attributes) click to toggle source
Calls superclass method
# File lib/pixiv_api/response/friend.rb, line 8
def initialize(response, attributes)
  user_id = attributes['user'].delete('id')

  merged = attributes['user'].merge(
    id: attributes['id'],
    user_id: user_id
  )

  super(response, merged)
end

Public Instance Methods

avatar_url() click to toggle source
# File lib/pixiv_api/response/friend.rb, line 19
def avatar_url
  blob_profile_image_urls['px_50x50']
end