Class: Newzcache::Nzb
- Inherits:
-
Object
- Object
- Newzcache::Nzb
- Defined in:
- lib/newzcache/nzb.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#content ⇒ Object
Returns the value of attribute content.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#group_id ⇒ Object
Returns the value of attribute group_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#info_url ⇒ Object
Returns the value of attribute info_url.
-
#is_hd ⇒ Object
Returns the value of attribute is_hd.
-
#meta_attributes ⇒ Object
Returns the value of attribute meta_attributes.
-
#newzbin_id ⇒ Object
Returns the value of attribute newzbin_id.
-
#pub_date ⇒ Object
Returns the value of attribute pub_date.
-
#size_in_bytes ⇒ Object
Returns the value of attribute size_in_bytes.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(client, content, options = {}) ⇒ Nzb
constructor
A new instance of Nzb.
Constructor Details
#initialize(client, content, options = {}) ⇒ Nzb
Returns a new instance of Nzb.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/newzcache/nzb.rb', line 6 def initialize(client, content, ={}) @client = client @content = content @id = ["id"] @title = ["title"] @content_type = ["content_type"] @group_id = ["group_id"] @newzbin_id = ["newzbin_id"] @pub_date = ["pub_date"] @size_in_bytes = ["size_in_bytes"] @is_hd = ["is_hd"] @meta_attributes = ["meta_attributes"] @info_url = ["info_url"] end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/newzcache/nzb.rb', line 3 def client @client end |
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def content @content end |
#content_type ⇒ Object
Returns the value of attribute content_type.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def content_type @content_type end |
#group_id ⇒ Object
Returns the value of attribute group_id.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def group_id @group_id end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def id @id end |
#info_url ⇒ Object
Returns the value of attribute info_url.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def info_url @info_url end |
#is_hd ⇒ Object
Returns the value of attribute is_hd.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def is_hd @is_hd end |
#meta_attributes ⇒ Object
Returns the value of attribute meta_attributes.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def @meta_attributes end |
#newzbin_id ⇒ Object
Returns the value of attribute newzbin_id.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def newzbin_id @newzbin_id end |
#pub_date ⇒ Object
Returns the value of attribute pub_date.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def pub_date @pub_date end |
#size_in_bytes ⇒ Object
Returns the value of attribute size_in_bytes.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def size_in_bytes @size_in_bytes end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/newzcache/nzb.rb', line 4 def title @title end |