Class: Sorenson::Services::RatePlan

Inherits:
Base show all
Defined in:
lib/sorenson/services/rate_plan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typesObject

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_typesObject

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_megabytesObject

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_megabytesObject

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_streamsObject

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_costObject

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_planObject

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

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/sorenson/services/rate_plan.rb', line 4

def data
  @data
end

#date_last_modifiedObject

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_retrievedObject

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_nameObject

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_videoObject

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_costObject

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_typeObject

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_costObject

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_skuObject

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_allowedObject

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_allowedObject

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