Class: Sorenson::Services::RatePlan
- Defined in:
- lib/sorenson/services/rate_plan.rb
Instance Attribute Summary collapse
-
#allowed_output_media_types ⇒ Object
Returns the value of attribute allowed_output_media_types.
-
#allowed_source_media_types ⇒ Object
Returns the value of attribute allowed_source_media_types.
-
#allowed_storage_megabytes ⇒ Object
Returns the value of attribute allowed_storage_megabytes.
-
#allowed_streaming_megabytes ⇒ Object
Returns the value of attribute allowed_streaming_megabytes.
-
#allowed_streams ⇒ Object
Returns the value of attribute allowed_streams.
-
#annual_cost ⇒ Object
Returns the value of attribute annual_cost.
-
#base_plan ⇒ Object
Returns the value of attribute base_plan.
-
#data ⇒ Object
Returns the value of attribute data.
-
#date_last_modified ⇒ Object
Returns the value of attribute date_last_modified.
-
#date_retrieved ⇒ Object
Returns the value of attribute date_retrieved.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#max_thumbnails_per_video ⇒ Object
Returns the value of attribute max_thumbnails_per_video.
-
#monthly_cost ⇒ Object
Returns the value of attribute monthly_cost.
-
#rate_plan_type ⇒ Object
Returns the value of attribute rate_plan_type.
-
#setup_cost ⇒ Object
Returns the value of attribute setup_cost.
-
#sorenson_sku ⇒ Object
Returns the value of attribute sorenson_sku.
-
#storage_overage_allowed ⇒ Object
Returns the value of attribute storage_overage_allowed.
-
#streaming_overage_allowed ⇒ Object
Returns the value of attribute streaming_overage_allowed.
Instance Method Summary collapse
-
#initialize(data) ⇒ RatePlan
constructor
A new instance of RatePlan.
Methods inherited from Base
delete_from, get_from, host, login_no_resource, parse_response, post_to, put_to, verify_account_settings
Constructor Details
#initialize(data) ⇒ RatePlan
Returns a new instance of RatePlan.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/sorenson/services/rate_plan.rb', line 8 def initialize(data) @display_name = data['display_name'] @rate_plan_type = data['rate_plan_type'] @max_thumbnails_per_video = data['max_thumbnails_per_video'] @setup_cost = data['setup_cost'] @monthly_cost = data['monthly_cost'] @annual_cost = data['annual_cost'] @allowed_streams = data['allowed_streams'] @base_plan = data['base_plan'] @date_last_modified = data['date_last_modified'] @date_retrieved = data['date_retrieved'] @streaming_overage_allowed = data['streaming_overage_allowed'] @storage_overage_allowed = data['storage_overage_allowed'] @allowed_streaming_megabytes = data['allowed_streaming_megabytes'] @allowed_storage_megabytes = data['allowed_storage_megabytes'] @allowed_source_media_types = data['allowed_source_media_types'].collect {|e| e['mediaType']} @allowed_output_media_types = data['allowed_output_media_types'].collect {|e| e['mediaType']} @sorenson_sku = data['sorenson_sku'] @data = data end |
Instance Attribute Details
#allowed_output_media_types ⇒ Object
Returns the value of attribute allowed_output_media_types.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def allowed_output_media_types @allowed_output_media_types end |
#allowed_source_media_types ⇒ Object
Returns the value of attribute allowed_source_media_types.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def allowed_source_media_types @allowed_source_media_types end |
#allowed_storage_megabytes ⇒ Object
Returns the value of attribute allowed_storage_megabytes.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def allowed_storage_megabytes @allowed_storage_megabytes end |
#allowed_streaming_megabytes ⇒ Object
Returns the value of attribute allowed_streaming_megabytes.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def allowed_streaming_megabytes @allowed_streaming_megabytes end |
#allowed_streams ⇒ Object
Returns the value of attribute allowed_streams.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def allowed_streams @allowed_streams end |
#annual_cost ⇒ Object
Returns the value of attribute annual_cost.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def annual_cost @annual_cost end |
#base_plan ⇒ Object
Returns the value of attribute base_plan.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def base_plan @base_plan end |
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def data @data end |
#date_last_modified ⇒ Object
Returns the value of attribute date_last_modified.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def date_last_modified @date_last_modified end |
#date_retrieved ⇒ Object
Returns the value of attribute date_retrieved.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def date_retrieved @date_retrieved end |
#display_name ⇒ Object
Returns the value of attribute display_name.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def display_name @display_name end |
#max_thumbnails_per_video ⇒ Object
Returns the value of attribute max_thumbnails_per_video.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def max_thumbnails_per_video @max_thumbnails_per_video end |
#monthly_cost ⇒ Object
Returns the value of attribute monthly_cost.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def monthly_cost @monthly_cost end |
#rate_plan_type ⇒ Object
Returns the value of attribute rate_plan_type.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def rate_plan_type @rate_plan_type end |
#setup_cost ⇒ Object
Returns the value of attribute setup_cost.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def setup_cost @setup_cost end |
#sorenson_sku ⇒ Object
Returns the value of attribute sorenson_sku.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def sorenson_sku @sorenson_sku end |
#storage_overage_allowed ⇒ Object
Returns the value of attribute storage_overage_allowed.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def storage_overage_allowed @storage_overage_allowed end |
#streaming_overage_allowed ⇒ Object
Returns the value of attribute streaming_overage_allowed.
4 5 6 |
# File 'lib/sorenson/services/rate_plan.rb', line 4 def streaming_overage_allowed @streaming_overage_allowed end |