Class: RXCode::FileReference

Inherits:
Model
  • Object
show all
Defined in:
lib/rxcode/models/file_reference.rb

Instance Attribute Summary

Attributes inherited from Model

#archive_object

Instance Method Summary collapse

Methods inherited from Model

#archive, class_for_archived_object_type, #initialize, map_archived_object, object_at_path, #root

Constructor Details

This class inherits a constructor from RXCode::Model

Instance Method Details

#last_known_file_typeObject



17
18
19
# File 'lib/rxcode/models/file_reference.rb', line 17

def last_known_file_type
  archive_object['lastKnownFileType']
end

#nameObject



5
6
7
# File 'lib/rxcode/models/file_reference.rb', line 5

def name
  archive_object['name']
end

#pathObject



9
10
11
# File 'lib/rxcode/models/file_reference.rb', line 9

def path
  archive_object['path']
end

#source_treeObject



13
14
15
# File 'lib/rxcode/models/file_reference.rb', line 13

def source_tree
  archive_object['sourceTree']
end