Module: LinkedIn::API::Profiles
- Defined in:
- lib/linkedin/api/profiles.rb
Instance Method Summary collapse
Instance Method Details
#connections(options = {}) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/linkedin/api/profiles.rb', line 15 def connections(={}) selector = [:selector].to_param || '~' selector_option = { selector: [ selector, 'connections' ].join('/') } profile .slice(:selector).merge(selector_option) end |
#profile(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/linkedin/api/profiles.rb', line 4 def profile(={}) selector = [:selector] selector_string = '~' if selector.blank? selector_string ||= selector.to_param fields = [:fields] fields_string = fields.blank? ? '' : ":(#{Permissions. fields})" get "v1/people/#{selector_string}#{fields_string}" end |