Class: Starling::Resources::ContactResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Starling::Resources::ContactResource
- Defined in:
- lib/starling/resources/contact_resource.rb
Overview
A resource representing a Contact returned from the Contacts API
Instance Method Summary collapse
-
#id ⇒ String
The Starling internal ID of the contact.
-
#name ⇒ String
The name of the contact.
Methods inherited from BaseResource
Constructor Details
This class inherits a constructor from Starling::Resources::BaseResource
Instance Method Details
#id ⇒ String
Returns the Starling internal ID of the contact.
6 7 8 |
# File 'lib/starling/resources/contact_resource.rb', line 6 def id parsed_data['id'] end |
#name ⇒ String
Returns the name of the contact.
11 12 13 |
# File 'lib/starling/resources/contact_resource.rb', line 11 def name parsed_data['name'] end |