Sha256: 46eb6451550f716bf612b9194551194229218a027bb1abb9211e30d15ab1d0d4

Contents?: true

Size: 873 Bytes

Versions: 36

Compression:

Stored size: 873 Bytes

Contents

module Videojuicer
  class Preset
    include Videojuicer::Resource
    
    property :name,              String
    property :derived_type,      String
    property :created_at,        DateTime
    property :updated_at,        DateTime

    property :file_format,       String

    property :audio_bit_rate,    Integer  # bits per second
    property :audio_channels,    Integer
    property :audio_format,      String
    property :audio_sample_rate, Integer  # hertz

    property :video_bit_rate,    Integer  # bits per second
    property :video_format,      String
    property :video_frame_rate,  Float    # frames per second

    property :width,             Integer  # pixels
    property :height,            Integer  # pixels
    
    def self.formats
      response = instance_proxy.get(resource_route(:formats))
      JSON.parse(response.body)
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
vj-sdk-0.6.4 lib/videojuicer/preset.rb
vj-sdk-0.6.3 lib/videojuicer/preset.rb
vj-sdk-0.6.1 lib/videojuicer/preset.rb
vj-sdk-0.6.0 lib/videojuicer/preset.rb
vj-sdk-0.5.6 lib/videojuicer/preset.rb
vj-sdk-0.5.5 lib/videojuicer/preset.rb
vj-sdk-0.5.4 lib/videojuicer/preset.rb
vj-sdk-0.5.3 lib/videojuicer/preset.rb
vj-sdk-0.5.2 lib/videojuicer/preset.rb
vj-sdk-0.5.1 lib/videojuicer/preset.rb
vj-sdk-0.5.0 lib/videojuicer/preset.rb
vj-sdk-0.4.3 lib/videojuicer/preset.rb
vj-sdk-0.4.2 lib/videojuicer/preset.rb
vj-sdk-0.4.1 lib/videojuicer/preset.rb
vj-sdk-0.4.0 lib/videojuicer/preset.rb
vj-sdk-0.2.1 lib/videojuicer/preset.rb