Class: Shutterstock::SubscriptionLicenseFormat
- Defined in:
- lib/client/subscription_license_format.rb
Constant Summary
Constants inherited from Driver
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#media_type ⇒ Object
readonly
Returns the value of attribute media_type.
-
#min_resolution ⇒ Object
readonly
Returns the value of attribute min_resolution.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ SubscriptionLicenseFormat
constructor
A new instance of SubscriptionLicenseFormat.
Methods inherited from Driver
api, client, #client, #json_true?, #methods, #respond_to, #to_date
Constructor Details
#initialize(params = {}) ⇒ SubscriptionLicenseFormat
Returns a new instance of SubscriptionLicenseFormat.
5 6 7 8 9 10 11 12 13 |
# File 'lib/client/subscription_license_format.rb', line 5 def initialize(params={}) @hash = params @description = params["description"] if params["description"] # (string, optional), @min_resolution = params["min_resolution"].to_i if params["min_resolution"] # (integer, optional), @media_type = params["media_type"] if params["media_type"] # (string, optional), @format = params["format"] if params["format"] # (string, optional), @size = params["size"] if params["size"] # (string, optional) end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/client/subscription_license_format.rb', line 3 def description @description end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
3 4 5 |
# File 'lib/client/subscription_license_format.rb', line 3 def format @format end |
#media_type ⇒ Object (readonly)
Returns the value of attribute media_type.
3 4 5 |
# File 'lib/client/subscription_license_format.rb', line 3 def media_type @media_type end |
#min_resolution ⇒ Object (readonly)
Returns the value of attribute min_resolution.
3 4 5 |
# File 'lib/client/subscription_license_format.rb', line 3 def min_resolution @min_resolution end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
3 4 5 |
# File 'lib/client/subscription_license_format.rb', line 3 def size @size end |