Class: ONIX::SalesRightsType

Inherits:
CodeFromYaml show all
Defined in:
lib/onix/code.rb

Instance Attribute Summary

Attributes inherited from Code

#code

Attributes included from Attributes

#attributes

Low level collapse

Methods inherited from CodeFromYaml

code_ident, code_identifier, hash, list

Methods inherited from Code

from_code, from_human, hash

Methods included from CodeMethods

#onix, #parse

Methods inherited from Subset

parse, #parse, #tag_match, #unsupported

Methods included from Attributes

attribute_class, #parse_attributes, #serialized_attributes

Instance Method Details

#humanString

Returns humanized name (from code): SalesRightsUnknownOrUnstatedForAnyReason (00), ForSaleWithExclusiveRightsInTheSpecifiedCountriesOrTerritories (01), ForSaleWithNonExclusiveRightsInTheSpecifiedCountriesOrTerritories (02), NotForSaleInTheSpecifiedCountriesOrTerritoriesReasonUnspecified (03), NotForSaleInTheSpecifiedCountriesButPublisherHoldsExclusiveRightsInThoseCountriesOrTerritories (04), NotForSaleInTheSpecifiedCountriesPublisherHoldsNonExclusiveRightsInThoseCountriesOrTerritories (05), NotForSaleInTheSpecifiedCountriesBecausePublisherDoesNotHoldRightsInThoseCountriesOrTerritories (06), ForSaleWithExclusiveRightsInTheSpecifiedCountriesOrTerritoriesSalesRestrictionApplies (07), ForSaleWithNonExclusiveRightsInTheSpecifiedCountriesOrTerritoriesSalesRestrictionApplies (08).

Returns:

  • (String)

    humanized name (from code): SalesRightsUnknownOrUnstatedForAnyReason (00), ForSaleWithExclusiveRightsInTheSpecifiedCountriesOrTerritories (01), ForSaleWithNonExclusiveRightsInTheSpecifiedCountriesOrTerritories (02), NotForSaleInTheSpecifiedCountriesOrTerritoriesReasonUnspecified (03), NotForSaleInTheSpecifiedCountriesButPublisherHoldsExclusiveRightsInThoseCountriesOrTerritories (04), NotForSaleInTheSpecifiedCountriesPublisherHoldsNonExclusiveRightsInThoseCountriesOrTerritories (05), NotForSaleInTheSpecifiedCountriesBecausePublisherDoesNotHoldRightsInThoseCountriesOrTerritories (06), ForSaleWithExclusiveRightsInTheSpecifiedCountriesOrTerritoriesSalesRestrictionApplies (07), ForSaleWithNonExclusiveRightsInTheSpecifiedCountriesOrTerritoriesSalesRestrictionApplies (08)



259
# File 'lib/onix/code.rb', line 259

code_identifier 46