Class: Svn::Scm::Adapters::Entry
- Inherits:
-
Object
- Object
- Svn::Scm::Adapters::Entry
- Defined in:
- lib/Svn/scm/adapters/subversion.rb
Instance Attribute Summary collapse
-
#changeset ⇒ Object
Returns the value of attribute changeset.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#lastrev ⇒ Object
Returns the value of attribute lastrev.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Entry
constructor
A new instance of Entry.
- #is_dir? ⇒ Boolean
- #is_file? ⇒ Boolean
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
#changeset ⇒ Object
Returns the value of attribute changeset.
239 240 241 |
# File 'lib/Svn/scm/adapters/subversion.rb', line 239 def changeset @changeset end |
#kind ⇒ Object
Returns the value of attribute kind.
239 240 241 |
# File 'lib/Svn/scm/adapters/subversion.rb', line 239 def kind @kind end |
#lastrev ⇒ Object
Returns the value of attribute lastrev.
239 240 241 |
# File 'lib/Svn/scm/adapters/subversion.rb', line 239 def lastrev @lastrev end |
#name ⇒ Object
Returns the value of attribute name.
239 240 241 |
# File 'lib/Svn/scm/adapters/subversion.rb', line 239 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
239 240 241 |
# File 'lib/Svn/scm/adapters/subversion.rb', line 239 def path @path end |
#size ⇒ Object
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
250 251 252 |
# File 'lib/Svn/scm/adapters/subversion.rb', line 250 def is_dir? 'dir' == self.kind end |
#is_file? ⇒ Boolean
247 248 249 |
# File 'lib/Svn/scm/adapters/subversion.rb', line 247 def is_file? 'file' == self.kind end |