Class: PixivApi::Response::User

Inherits:
Identity show all
Defined in:
lib/pixiv_api/response/user.rb

Instance Attribute Summary collapse

Attributes inherited from PixivApi::Response

#attributes, #response

Instance Method Summary collapse

Methods inherited from Identity

#initialize

Methods inherited from PixivApi::Response

#[], attr_reader, define_attribute_method, define_attributes_method, define_blob_method, define_time_method, from_response, #initialize

Constructor Details

This class inherits a constructor from PixivApi::Response::Identity

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def 
  @account
end

#emailObject (readonly)

Returns the value of attribute email.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def email
  @email
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def id
  @id
end

#is_followerObject (readonly)

Returns the value of attribute is_follower.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def is_follower
  @is_follower
end

#is_followingObject (readonly)

Returns the value of attribute is_following.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def is_following
  @is_following
end

#is_friendObject (readonly)

Returns the value of attribute is_friend.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def is_friend
  @is_friend
end

#is_premiumObject (readonly)

Returns the value of attribute is_premium.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def is_premium
  @is_premium
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def name
  @name
end

#profileObject (readonly)

Returns the value of attribute profile.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def profile
  @profile
end

#statsObject (readonly)

Returns the value of attribute stats.



4
5
6
# File 'lib/pixiv_api/response/user.rb', line 4

def stats
  @stats
end

Instance Method Details

#avatar_urlObject



9
10
11
# File 'lib/pixiv_api/response/user.rb', line 9

def avatar_url
  blob_profile_image_urls['px_50x50']
end