Skip to content

Commit 1c7001b

Browse files
committed
Updates README
1 parent 9a62343 commit 1c7001b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ All client methods return `Resource` objects or a collection of `Resource` obje
3232

3333
```ruby
3434
conversation = platform.conversations.find("fb2f3a48-523d-4449-a57f-c6651fc6612c")
35-
#<Layer::Resources::Conversation:0x007fdb18b44bf0 @attributes={...}>
35+
#<Layer::Resources::Conversation @attributes={...}>
3636

3737
# Get the stripped uuid for any resource
3838
conversation.uuid
@@ -53,12 +53,12 @@ See the official [Platform API docs](https://developer.layer.com/docs/platform)
5353

5454
```ruby
5555
platform = Layer::Platform::Client.new(api_token: "your_api_token", app_id: "your_app_id")
56-
# => #<Layer::Platform::Client:0x007fdb19844f30 @api_token="...", @app_id="...">
56+
# => #<Layer::Platform::Client @api_token="...", @app_id="...">
5757
```
5858
If you have `ENV['LAYER_API_TOKEN']` and `ENV['LAYER_APP_ID']` environment variables setup, they will be used by default and don't need to be included:
5959
```ruby
6060
platform = Layer::Platform::Client.new
61-
# => #<Layer::Platform::Client:0x007fdb19844f30 @api_token="...", @app_id="...">
61+
# => #<Layer::Platform::Client @api_token="...", @app_id="...">
6262
```
6363

6464
#### Retrieving Conversations ####
@@ -76,11 +76,11 @@ convs = user.conversations.list
7676
# For a user
7777
user = platform.users.find("user_id")
7878
conv = user.conversations.find("conversation_id")
79-
# => #<Layer::Resources::Conversation:0x007fdb18b44bf0 @attributes={...}>
79+
# => #<Layer::Resources::Conversation @attributes={...}>
8080

8181
# or alternatively
8282
conv = platform.conversations.find("conversation_id")
83-
# => #<Layer::Resources::Conversation:0x007fdb18b44bf0 @attributes={...}>
83+
# => #<Layer::Resources::Conversation @attributes={...}>
8484
```
8585

8686
#### Creating Conversations ####
@@ -98,7 +98,7 @@ conversation = {
9898
}
9999

100100
platform.conversations.create(conversation)
101-
# => #<Layer::Resources::Conversation:0x007fdb18b44bf0 @attributes={...}>
101+
# => #<Layer::Resources::Conversation @attributes={...}>
102102
```
103103

104104
#### Editing Conversations ####
@@ -149,7 +149,7 @@ message = {
149149

150150
conv = platform.conversations.find("conversation_id")
151151
conv.messages.create(message)
152-
# => #<Layer::Resources::Message:0x007fdb18b44bf0 @attributes={...}>
152+
# => #<Layer::Resources::Message @attributes={...}>
153153
```
154154

155155
#### Retrieving Messages ####
@@ -172,12 +172,12 @@ conv.messages.list
172172
# From a specific user's perspective
173173
user = platform.users.find("user_id")
174174
messages = user.messages.find("message_id")
175-
# => #<Layer::Resources::Message:0x007fdb18b44bf0 @attributes={...}>
175+
# => #<Layer::Resources::Message @attributes={...}>
176176

177177
# From the systems perspective
178178
conv = platform.conversations.find("conversation_id")
179179
messages = conv.messages.find("message_id")
180-
# => #<Layer::Resources::Message:0x007fdb18b44bf0 @attributes={...}>
180+
# => #<Layer::Resources::Message @attributes={...}>
181181
```
182182

183183
#### Deleting A Message
@@ -209,7 +209,7 @@ announcement = {
209209
}
210210

211211
platform.announcements.create(announcement)
212-
# => #<Layer::Resources::Announcement:0x007fdb18b44bf0 @attributes={...}>
212+
# => #<Layer::Resources::Announcement @attributes={...}>
213213
```
214214

215215
#### Modifying A Users Block List ####
@@ -233,7 +233,7 @@ user.update(operations)
233233
user = platform.users.find("user_id")
234234

235235
blocks = user.blocks.list
236-
# => [#<Layer::Resources::Block @attributes={...}>, [#<Layer::Resources::Block @attributes={...}>, ...]
236+
# => [#<Layer::Resources::Block>, [#<Layer::Resources::Block>, ...]
237237
```
238238

239239
#### Blocking Users

0 commit comments

Comments
 (0)