Class: LinkedIn::ImAccount::Resource
- Inherits:
-
Object
- Object
- LinkedIn::ImAccount::Resource
- Defined in:
- lib/linked_in/im_account.rb
Instance Method Summary collapse
-
#initialize(im_account) ⇒ Resource
constructor
A new instance of Resource.
- #name ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(im_account) ⇒ Resource
13 14 15 |
# File 'lib/linked_in/im_account.rb', line 13 def initialize(im_account) @im_account = im_account end |
Instance Method Details
#name ⇒ Object
21 22 23 |
# File 'lib/linked_in/im_account.rb', line 21 def name @im_account.xpath("./im-account-name").text end |
#type ⇒ Object
17 18 19 |
# File 'lib/linked_in/im_account.rb', line 17 def type @im_account.xpath("./im-account-type").text end |