Class: JohnStamos::Pinner
- Inherits:
-
Object
- Object
- JohnStamos::Pinner
- Defined in:
- lib/john_stamos/pinner.rb
Instance Attribute Summary collapse
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
- #about ⇒ Object
- #avatar ⇒ Object
- #board_count ⇒ Object
- #first_name ⇒ Object
- #follower_count ⇒ Object
- #full_name ⇒ Object
-
#initialize(client, username) ⇒ Pinner
constructor
A new instance of Pinner.
- #last_name ⇒ Object
- #location ⇒ Object
- #pin_count ⇒ Object
- #url ⇒ Object
- #website_url ⇒ Object
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
#username ⇒ Object (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
#about ⇒ Object
19 20 21 |
# File 'lib/john_stamos/pinner.rb', line 19 def about ("about") end |
#avatar ⇒ Object
31 32 33 |
# File 'lib/john_stamos/pinner.rb', line 31 def avatar ("image_large_url") end |
#board_count ⇒ Object
27 28 29 |
# File 'lib/john_stamos/pinner.rb', line 27 def board_count ("board_count") end |
#first_name ⇒ Object
35 36 37 |
# File 'lib/john_stamos/pinner.rb', line 35 def first_name ("first_name") end |
#follower_count ⇒ Object
23 24 25 |
# File 'lib/john_stamos/pinner.rb', line 23 def follower_count ("follower_count") end |
#full_name ⇒ Object
43 44 45 |
# File 'lib/john_stamos/pinner.rb', line 43 def full_name ("full_name") end |
#last_name ⇒ Object
39 40 41 |
# File 'lib/john_stamos/pinner.rb', line 39 def last_name ("last_name") end |
#location ⇒ Object
51 52 53 |
# File 'lib/john_stamos/pinner.rb', line 51 def location ("location") end |
#pin_count ⇒ Object
15 16 17 |
# File 'lib/john_stamos/pinner.rb', line 15 def pin_count ("pin_count") end |
#url ⇒ Object
11 12 13 |
# File 'lib/john_stamos/pinner.rb', line 11 def url "http://pinterest.com/#{@username}/" end |
#website_url ⇒ Object
47 48 49 |
# File 'lib/john_stamos/pinner.rb', line 47 def website_url ("website_url") end |