Class: Hawker::Drivers::Instagram
- Defined in:
- lib/hawker/drivers/instagram.rb
Instance Method Summary collapse
-
#biography ⇒ String
The current user biography.
-
#external_url ⇒ String
The current user external URL that is present in the biography.
-
#followers ⇒ Integer
The current user followers count.
-
#following ⇒ Integer
The number of accounts that the current user follows.
-
#full_name ⇒ String
The current user full name.
-
#profile_pic_url ⇒ String
The current user profile picture URL.
-
#username ⇒ String
The current user Instagram username.
Methods inherited from Default
Constructor Details
This class inherits a constructor from Hawker::Drivers::Default
Instance Method Details
#biography ⇒ String
The current user biography
10 11 12 |
# File 'lib/hawker/drivers/instagram.rb', line 10 def biography json["entry_data"]["ProfilePage"].first["graphql"]["user"]["biography"] end |
#external_url ⇒ String
The current user external URL that is present in the biography
38 39 40 |
# File 'lib/hawker/drivers/instagram.rb', line 38 def external_url json["entry_data"]["ProfilePage"].first["graphql"]["user"]["external_url"] end |
#followers ⇒ Integer
The current user followers count
24 25 26 |
# File 'lib/hawker/drivers/instagram.rb', line 24 def followers json["entry_data"]["ProfilePage"].first["graphql"]["user"]["edge_followed_by"]["count"] end |
#following ⇒ Integer
The number of accounts that the current user follows
31 32 33 |
# File 'lib/hawker/drivers/instagram.rb', line 31 def following json["entry_data"]["ProfilePage"].first["graphql"]["user"]["edge_follow"]["count"] end |
#full_name ⇒ String
The current user full name
17 18 19 |
# File 'lib/hawker/drivers/instagram.rb', line 17 def full_name json["entry_data"]["ProfilePage"].first["graphql"]["user"]["full_name"] end |
#profile_pic_url ⇒ String
The current user profile picture URL
45 46 47 |
# File 'lib/hawker/drivers/instagram.rb', line 45 def profile_pic_url json["entry_data"]["ProfilePage"].first["graphql"]["user"]["profile_pic_url"] end |
#username ⇒ String
The current user Instagram username
52 53 54 |
# File 'lib/hawker/drivers/instagram.rb', line 52 def username json["entry_data"]["ProfilePage"].first["graphql"]["user"]["username"] end |