Module: FbParse
- Defined in:
- lib/fb_parse.rb,
lib/fb_parse/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
- .get_id_checkin(url) ⇒ Object
- .get_id_link(url) ⇒ Object
- .get_id_photo(url) ⇒ Object
- .get_id_status(url) ⇒ Object
- .get_id_video(url) ⇒ Object
Class Method Details
.get_id_checkin(url) ⇒ Object
24 25 26 27 |
# File 'lib/fb_parse.rb', line 24 def self.get_id_checkin(url) @id = url.split('/')[5].split('?')[0] return @id end |
.get_id_link(url) ⇒ Object
19 20 21 22 |
# File 'lib/fb_parse.rb', line 19 def self.get_id_link(url) @id = url.split('/')[5].split('?')[0] return @id end |
.get_id_photo(url) ⇒ Object
9 10 11 12 |
# File 'lib/fb_parse.rb', line 9 def self.get_id_photo(url) @id = url.split('/')[3].split('=')[1].split('&')[0] return @id end |
.get_id_status(url) ⇒ Object
4 5 6 7 |
# File 'lib/fb_parse.rb', line 4 def self.get_id_status(url) @id = url.split('/')[5].split('?')[0] return @id end |
.get_id_video(url) ⇒ Object
14 15 16 17 |
# File 'lib/fb_parse.rb', line 14 def self.get_id_video(url) @id = url.split('/')[3].split('=')[1].split('&')[0] return @id end |