Class: Id3Taginator::Frames::Encryption::Entities::EncryptionMethod

Inherits:
Object
  • Object
show all
Includes:
Extensions::Comparable
Defined in:
lib/id3taginator/frames/encryption/entities/encryption_method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions::Comparable

#==, #compare

Constructor Details

#initialize(owner_id, method_symbol, encryption_data) ⇒ EncryptionMethod

constructor

Parameters:

  • owner_id (String)

    the owner id

  • method_symbol (Integer)

    method symbol between 0 and 255

  • encryption_data (String)

    encryption data represented as a String



17
18
19
20
21
# File 'lib/id3taginator/frames/encryption/entities/encryption_method.rb', line 17

def initialize(owner_id, method_symbol, encryption_data)
  @owner_id = owner_id
  @method_symbol = method_symbol
  @encryption_data = encryption_data
end

Instance Attribute Details

#encryption_dataObject

Returns the value of attribute encryption_data.



10
11
12
# File 'lib/id3taginator/frames/encryption/entities/encryption_method.rb', line 10

def encryption_data
  @encryption_data
end

#method_symbolObject

Returns the value of attribute method_symbol.



10
11
12
# File 'lib/id3taginator/frames/encryption/entities/encryption_method.rb', line 10

def method_symbol
  @method_symbol
end

#owner_idObject

Returns the value of attribute owner_id.



10
11
12
# File 'lib/id3taginator/frames/encryption/entities/encryption_method.rb', line 10

def owner_id
  @owner_id
end