Class: Hawker::Drivers::Instagram

Inherits:
Default
  • Object
show all
Defined in:
lib/hawker/drivers/instagram.rb

Instance Method Summary collapse

Methods inherited from Default

#initialize, #page_title

Constructor Details

This class inherits a constructor from Hawker::Drivers::Default

Instance Method Details

#biographyString

The current user biography

Returns:

  • (String)


10
11
12
# File 'lib/hawker/drivers/instagram.rb', line 10

def biography
  json["entry_data"]["ProfilePage"].first["graphql"]["user"]["biography"]
end

#external_urlString

The current user external URL that is present in the biography

Returns:

  • (String)


38
39
40
# File 'lib/hawker/drivers/instagram.rb', line 38

def external_url
  json["entry_data"]["ProfilePage"].first["graphql"]["user"]["external_url"]
end

#followersInteger

The current user followers count

Returns:

  • (Integer)


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

#followingInteger

The number of accounts that the current user follows

Returns:

  • (Integer)


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_nameString

The current user full name

Returns:

  • (String)


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_urlString

The current user profile picture URL

Returns:

  • (String)


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

#usernameString

The current user Instagram username

Returns:

  • (String)


52
53
54
# File 'lib/hawker/drivers/instagram.rb', line 52

def username
  json["entry_data"]["ProfilePage"].first["graphql"]["user"]["username"]
end