Class: RepoFile
- Includes:
- FromHash
- Defined in:
- lib/transparent_git/repo.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
78 79 80 |
# File 'lib/transparent_git/repo.rb', line 78 def body @body end |
#file ⇒ Object
Returns the value of attribute file.
78 79 80 |
# File 'lib/transparent_git/repo.rb', line 78 def file @file end |
Instance Method Details
#to_json ⇒ Object
79 80 81 |
# File 'lib/transparent_git/repo.rb', line 79 def to_json {:file => file, :body => body} end |