Class: Svn::Scm::Adapters::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/Svn/scm/adapters/subversion.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Entry

Returns a new instance of Entry.



240
241
242
243
244
245
246
# File 'lib/Svn/scm/adapters/subversion.rb', line 240

def initialize(attributes={}) 
	self.name = attributes[:name] if attributes[:name]
	self.path = attributes[:path] if attributes[:path]
	self.kind = attributes[:kind] if attributes[:kind]
	self.size = attributes[:size].to_i if attributes[:size]
	self.lastrev = attributes[:lastrev]
end

Instance Attribute Details

#changesetObject

Returns the value of attribute changeset.



239
240
241
# File 'lib/Svn/scm/adapters/subversion.rb', line 239

def changeset
  @changeset
end

#kindObject

Returns the value of attribute kind.



239
240
241
# File 'lib/Svn/scm/adapters/subversion.rb', line 239

def kind
  @kind
end

#lastrevObject

Returns the value of attribute lastrev.



239
240
241
# File 'lib/Svn/scm/adapters/subversion.rb', line 239

def lastrev
  @lastrev
end

#nameObject

Returns the value of attribute name.



239
240
241
# File 'lib/Svn/scm/adapters/subversion.rb', line 239

def name
  @name
end

#pathObject

Returns the value of attribute path.



239
240
241
# File 'lib/Svn/scm/adapters/subversion.rb', line 239

def path
  @path
end

#sizeObject

Returns the value of attribute size.



239
240
241
# File 'lib/Svn/scm/adapters/subversion.rb', line 239

def size
  @size
end

Instance Method Details

#is_dir?Boolean

Returns:

  • (Boolean)


250
251
252
# File 'lib/Svn/scm/adapters/subversion.rb', line 250

def is_dir?
	'dir' == self.kind
end

#is_file?Boolean

Returns:

  • (Boolean)


247
248
249
# File 'lib/Svn/scm/adapters/subversion.rb', line 247

def is_file?
	'file' == self.kind
end