Class: JohnStamos::Pinner

Inherits:
Object
  • Object
show all
Defined in:
lib/john_stamos/pinner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, username) ⇒ Pinner

Returns a new instance of Pinner.



6
7
8
9
# File 'lib/john_stamos/pinner.rb', line 6

def initialize(client, username)
  @client = client
  @username = username
end

Instance Attribute Details

#usernameObject (readonly)

Returns the value of attribute username.



4
5
6
# File 'lib/john_stamos/pinner.rb', line 4

def username
  @username
end

Instance Method Details

#aboutObject



19
20
21
# File 'lib/john_stamos/pinner.rb', line 19

def about
  embedded_pinner_data("about")
end

#avatarObject



31
32
33
# File 'lib/john_stamos/pinner.rb', line 31

def avatar
  embedded_pinner_data("image_large_url")
end

#board_countObject



27
28
29
# File 'lib/john_stamos/pinner.rb', line 27

def board_count
  embedded_pinner_data("board_count")
end

#first_nameObject



35
36
37
# File 'lib/john_stamos/pinner.rb', line 35

def first_name
  embedded_pinner_data("first_name")
end

#follower_countObject



23
24
25
# File 'lib/john_stamos/pinner.rb', line 23

def follower_count
  embedded_pinner_data("follower_count")
end

#full_nameObject



43
44
45
# File 'lib/john_stamos/pinner.rb', line 43

def full_name
  embedded_pinner_data("full_name")
end

#last_nameObject



39
40
41
# File 'lib/john_stamos/pinner.rb', line 39

def last_name
  embedded_pinner_data("last_name")
end

#locationObject



51
52
53
# File 'lib/john_stamos/pinner.rb', line 51

def location
  embedded_pinner_data("location")
end

#pin_countObject



15
16
17
# File 'lib/john_stamos/pinner.rb', line 15

def pin_count
  embedded_pinner_data("pin_count")
end

#urlObject



11
12
13
# File 'lib/john_stamos/pinner.rb', line 11

def url
  "http://pinterest.com/#{@username}/"
end

#website_urlObject



47
48
49
# File 'lib/john_stamos/pinner.rb', line 47

def website_url
  embedded_pinner_data("website_url")
end