Class: Sorenson::ThreeSixty::FormatConstraint

Inherits:
Base
  • Object
show all
Defined in:
lib/sorenson/threesixty/format_constraint.rb

Constant Summary

Constants inherited from Base

Base::TOKEN_SALT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

debug=, debug?, host, #post_to, post_to, protocol, token_for, use_ssl=, use_ssl?

Constructor Details

#initialize(ratePlan, data) ⇒ FormatConstraint

Returns a new instance of FormatConstraint.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/sorenson/threesixty/format_constraint.rb', line 7

def initialize(ratePlan, data)
  self.ratePlan                  = ratePlan
  self.id                        = data['id']
  self.name                      = data['name']
  self.displayName               = data['displayName']
  self.defaultVideoDuration      = data['defaultVideoDuration']
  self.maxVideoDuration          = data['maxVideoDuration']
  self.defaultFrameRate          = data['defaultFrameRate']
  self.maxFrameRate              = data['maxFrameRate']
  self.maxWidth                  = data['maxWidth']
  self.defaultWidth              = data['defaultWidth']
  self.ratePlanId                = data['ratePlanId']
  self.maxHeight                 = data['maxHeight']
  self.defaultHeight             = data['defaultHeight']
  self.defaultAudioDataRate      = data['defaultAudioDataRate']
  self.maxAudioDataRate          = data['maxAudioDataRate']
  self.dateRetrieved             = data['dateRetrieved']
  self.defaultVideoDataRate      = data['defaultVideoDataRate']
  self.maxVideoDataRate          = data['maxVideoDataRate']
  self.thumbnailGenerationMethod = data['thumbnailGenerationMethod']
  self.defaultAudioCodec         = data['defaultAudioCodec']
  self.defaultVideoCodec         = data['defaultVideoCodec']
  self.audioBitRateMode          = data['audioBitRateMode']
  self.videoBitRateMode          = data['videoBitRateMode']
  self.mediaType                 = data['mediaType']
end

Instance Attribute Details

#audioBitRateModeObject

Returns the value of attribute audioBitRateMode.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def audioBitRateMode
  @audioBitRateMode
end

#dateRetrievedObject

Returns the value of attribute dateRetrieved.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def dateRetrieved
  @dateRetrieved
end

#defaultAudioCodecObject

Returns the value of attribute defaultAudioCodec.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def defaultAudioCodec
  @defaultAudioCodec
end

#defaultAudioDataRateObject

Returns the value of attribute defaultAudioDataRate.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def defaultAudioDataRate
  @defaultAudioDataRate
end

#defaultFrameRateObject

Returns the value of attribute defaultFrameRate.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def defaultFrameRate
  @defaultFrameRate
end

#defaultHeightObject

Returns the value of attribute defaultHeight.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def defaultHeight
  @defaultHeight
end

#defaultVideoCodecObject

Returns the value of attribute defaultVideoCodec.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def defaultVideoCodec
  @defaultVideoCodec
end

#defaultVideoDataRateObject

Returns the value of attribute defaultVideoDataRate.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def defaultVideoDataRate
  @defaultVideoDataRate
end

#defaultVideoDurationObject

Returns the value of attribute defaultVideoDuration.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def defaultVideoDuration
  @defaultVideoDuration
end

#defaultWidthObject

Returns the value of attribute defaultWidth.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def defaultWidth
  @defaultWidth
end

#displayNameObject

Returns the value of attribute displayName.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def displayName
  @displayName
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def id
  @id
end

#maxAudioDataRateObject

Returns the value of attribute maxAudioDataRate.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def maxAudioDataRate
  @maxAudioDataRate
end

#maxFrameRateObject

Returns the value of attribute maxFrameRate.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def maxFrameRate
  @maxFrameRate
end

#maxHeightObject

Returns the value of attribute maxHeight.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def maxHeight
  @maxHeight
end

#maxVideoDataRateObject

Returns the value of attribute maxVideoDataRate.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def maxVideoDataRate
  @maxVideoDataRate
end

#maxVideoDurationObject

Returns the value of attribute maxVideoDuration.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def maxVideoDuration
  @maxVideoDuration
end

#maxWidthObject

Returns the value of attribute maxWidth.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def maxWidth
  @maxWidth
end

#mediaTypeObject

Returns the value of attribute mediaType.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def mediaType
  @mediaType
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def name
  @name
end

#ratePlanObject

Returns the value of attribute ratePlan.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def ratePlan
  @ratePlan
end

#ratePlanIdObject

Returns the value of attribute ratePlanId.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def ratePlanId
  @ratePlanId
end

#thumbnailGenerationMethodObject

Returns the value of attribute thumbnailGenerationMethod.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def thumbnailGenerationMethod
  @thumbnailGenerationMethod
end

#videoBitRateModeObject

Returns the value of attribute videoBitRateMode.



5
6
7
# File 'lib/sorenson/threesixty/format_constraint.rb', line 5

def videoBitRateMode
  @videoBitRateMode
end