Class: Shutterstock::SubscriptionLicenseFormat

Inherits:
Driver
  • Object
show all
Defined in:
lib/client/subscription_license_format.rb

Constant Summary

Constants inherited from Driver

Driver::TRUTHY_JSON_VALUES

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/client/subscription_license_format.rb', line 3

def description
  @description
end

#formatObject (readonly)

Returns the value of attribute format.



3
4
5
# File 'lib/client/subscription_license_format.rb', line 3

def format
  @format
end

#media_typeObject (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_resolutionObject (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

#sizeObject (readonly)

Returns the value of attribute size.



3
4
5
# File 'lib/client/subscription_license_format.rb', line 3

def size
  @size
end