Class: Starling::Resources::ContactResource

Inherits:
BaseResource show all
Defined in:
lib/starling/resources/contact_resource.rb

Overview

A resource representing a Contact returned from the Contacts API

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from Starling::Resources::BaseResource

Instance Method Details

#idString

Returns the Starling internal ID of the contact.

Returns:

  • (String)

    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

#nameString

Returns the name of the contact.

Returns:

  • (String)

    the name of the contact



11
12
13
# File 'lib/starling/resources/contact_resource.rb', line 11

def name
  parsed_data['name']
end