Class: Linkout::Profile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_infoObject

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
  @clean_tags
end

#full_infoObject

Returns the value of attribute full_info.



8
9
10
# File 'lib/linkout.rb', line 8

def full_info
  @full_info
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/linkout.rb', line 8

def name
  @name
end

#urlObject

Returns the value of attribute url.



8
9
10
# File 'lib/linkout.rb', line 8

def url
  @url
end