Class: GrubY::VideoNote

Inherits:
BaseObject show all
Defined in:
lib/gruubY/types/extra.rb

Instance Attribute Summary

Attributes inherited from BaseObject

#api, #client

Instance Method Summary collapse

Methods inherited from BaseObject

#[], #dig, field_names, fields, #method_missing, #respond_to_missing?, #to_h

Constructor Details

#initialize(data) ⇒ VideoNote

Returns a new instance of VideoNote.



156
157
158
159
# File 'lib/gruubY/types/extra.rb', line 156

def initialize(data)
  super(data)
  @thumbnail = PhotoSize.new(@thumbnail) if @thumbnail.is_a?(Hash)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GrubY::BaseObject