Class: Filbunke::File
- Inherits:
-
Object
- Object
- Filbunke::File
- Defined in:
- lib/filbunke/file.rb
Constant Summary collapse
- PATH_KEY =
'path'
- URL_KEY =
'url'
- HASH_KEY =
'hash'
- STATE_KEY =
'state'
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(json) ⇒ File
constructor
A new instance of File.
- #path ⇒ Object
- #state ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(json) ⇒ File
Returns a new instance of File.
9 10 11 |
# File 'lib/filbunke/file.rb', line 9 def initialize(json) @json = json end |
Instance Method Details
#hash ⇒ Object
21 22 23 |
# File 'lib/filbunke/file.rb', line 21 def hash @json[HASH_KEY] end |
#path ⇒ Object
13 14 15 |
# File 'lib/filbunke/file.rb', line 13 def path @json[PATH_KEY] end |
#state ⇒ Object
25 26 27 |
# File 'lib/filbunke/file.rb', line 25 def state @json[STATE_KEY] end |
#url ⇒ Object
17 18 19 |
# File 'lib/filbunke/file.rb', line 17 def url @json[URL_KEY] end |