Class: RubySky::Raw::ImageEmbed

Inherits:
Object
  • Object
show all
Defined in:
lib/rubysky/raw/embed.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(images:) ⇒ ImageEmbed

Returns a new instance of ImageEmbed.



6
7
8
# File 'lib/rubysky/raw/embed.rb', line 6

def initialize(images:)
  @images = images
end

Instance Method Details

#as_json(*_args) ⇒ Object



10
11
12
13
14
15
# File 'lib/rubysky/raw/embed.rb', line 10

def as_json(*_args)
  {
    "$type": "app.bsky.embed.images",
    images: @images
  }
end

#to_json(*_args) ⇒ Object



17
18
19
# File 'lib/rubysky/raw/embed.rb', line 17

def to_json(*_args)
  as_json.to_json
end