Class: Textmagic::REST::Chat

Inherits:
InstanceResource show all
Defined in:
lib/textmagic-ruby/rest/chats.rb

Overview

A Chat resource.

@id

@phone

@contact

Hash like this

{
    "id": 4329702,
    "first_name": "Jonh",
    "last_name": "Doe",
    "company_name": "",
    "phone": "19025555555",
    "email": "",
    "country": {
      "id": "CA",
      "name": "Canada"
    },
    "custom_fields": [
      {
          "value": "1970-01-01",
          "id": 1111,
          "name": "Birthday",
          "createdAt": "2015-04-10T06:51:02+0000"
      }
    ]
}

@unread

@updated_at

Instance Method Summary collapse

Methods inherited from InstanceResource

#initialize, #inspect, #load_attributes

Methods included from Utils

#key_map, #resource, #to_camel_case, #to_underscore_case

Constructor Details

This class inherits a constructor from Textmagic::REST::InstanceResource

Instance Method Details

#refreshObject



109
110
111
# File 'lib/textmagic-ruby/rest/chats.rb', line 109

def refresh
  raise '`refresh` method is not supported for this resource.'
end