Class: Shotstack::Asset

Inherits:
Object
  • Object
show all
Defined in:
lib/shotstack/models/asset.rb

Direct Known Subclasses

ImageAsset, TitleAsset, VideoAsset

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



6
7
8
# File 'lib/shotstack/models/asset.rb', line 6

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

Instance Method Details

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



13
14
15
# File 'lib/shotstack/models/asset.rb', line 13

def build_from_hash(attributes)

end