Class: Linkout::Profile
- Inherits:
-
Object
- Object
- Linkout::Profile
- Defined in:
- lib/linkout.rb
Instance Attribute Summary collapse
-
#basic_info ⇒ Object
Returns the value of attribute basic_info.
-
#clean_tags(data) ⇒ Object
Returns the value of attribute clean_tags.
-
#full_info ⇒ Object
Returns the value of attribute full_info.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(profile_url, params = {}) ⇒ Profile
constructor
A new instance of Profile.
Constructor Details
#initialize(profile_url, params = {}) ⇒ Profile
Returns a new instance of Profile.
9 10 11 12 |
# File 'lib/linkout.rb', line 9 def initialize(profile_url, params={}) @url = profile_url @doc = Nokogiri::HTML(open(@url)) end |
Instance Attribute Details
#basic_info ⇒ Object
Returns the value of attribute basic_info.
8 9 10 |
# File 'lib/linkout.rb', line 8 def basic_info @basic_info end |
#clean_tags(data) ⇒ Object
Returns the value of attribute clean_tags.
8 9 10 |
# File 'lib/linkout.rb', line 8 def @clean_tags end |
#full_info ⇒ Object
Returns the value of attribute full_info.
8 9 10 |
# File 'lib/linkout.rb', line 8 def full_info @full_info end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/linkout.rb', line 8 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
8 9 10 |
# File 'lib/linkout.rb', line 8 def url @url end |