Class: AsposePdfCloud::LinkActionType

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_pdf_cloud/models/link_action_type.rb

Constant Summary collapse

GO_TO_ACTION =
0.freeze
GO_TO_URI_ACTION =
1.freeze
JAVASCRIPT_ACTION =
2.freeze
LAUNCH_ACTION =
3.freeze
NAMED_ACTION =
4.freeze
SUBMIT_FORM_ACTION =
5.freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ Fixnum

Builds the enum from string

Parameters:

  • The (Fixnum)

    enum value in the form of the string

Returns:

  • (Fixnum)

    The enum value



37
38
39
40
41
42
# File 'lib/aspose_pdf_cloud/models/link_action_type.rb', line 37

def build_from_hash(value)
  constantValues = LinkActionType.constants.select{ |const_name| LinkActionType.const_get(const_name) == value}
  raise "Invalid ENUM value #{value} for class #LinkActionType" if constantValues.empty?
  value
  #constantValues[0]

end