Class: Machinery::ManagedFilesDatabase::ChangedFile

Inherits:
Object
  • Object
show all
Defined in:
lib/managed_files_database.rb

Instance Attribute Summary collapse

Attributes inherited from Object

#attributes, #scope

Instance Method Summary collapse

Methods inherited from Object

#==, #[], #[]=, #as_json, #compare_with, convert_element, convert_raw_hash, #empty?, from_json, has_property, #hash, #initialize_copy, #method_missing, #respond_to?, #set_attributes

Constructor Details

#initialize(type, attrs) ⇒ ChangedFile

Returns a new instance of ChangedFile.



22
23
24
25
# File 'lib/managed_files_database.rb', line 22

def initialize(type, attrs)
  super(attrs)
  @type = type
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Machinery::Object

Instance Attribute Details

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/managed_files_database.rb', line 20

def type
  @type
end

Instance Method Details

#config_file?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/managed_files_database.rb', line 27

def config_file?
  @type == "c"
end