Class: Interfax::FaxItem
- Inherits:
-
Struct
- Object
- Struct
- Interfax::FaxItem
- Defined in:
- lib/interfax/fax_item.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#id ⇒ Object
Returns the value of attribute id.
-
#postpone_time ⇒ Object
Returns the value of attribute postpone_time.
-
#receiver_number ⇒ Object
Returns the value of attribute receiver_number.
-
#remote_csid ⇒ Object
Returns the value of attribute remote_csid.
-
#sent_pages ⇒ Object
Returns the value of attribute sent_pages.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#submit_time ⇒ Object
Returns the value of attribute submit_time.
-
#submitted_pages ⇒ Object
Returns the value of attribute submitted_pages.
Instance Method Summary collapse
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def duration @duration end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def id @id end |
#postpone_time ⇒ Object
Returns the value of attribute postpone_time
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def postpone_time @postpone_time end |
#receiver_number ⇒ Object
Returns the value of attribute receiver_number
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def receiver_number @receiver_number end |
#remote_csid ⇒ Object
Returns the value of attribute remote_csid
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def remote_csid @remote_csid end |
#sent_pages ⇒ Object
Returns the value of attribute sent_pages
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def sent_pages @sent_pages end |
#status ⇒ Object
Returns the value of attribute status
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def status @status end |
#subject ⇒ Object
Returns the value of attribute subject
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def subject @subject end |
#submit_time ⇒ Object
Returns the value of attribute submit_time
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def submit_time @submit_time end |
#submitted_pages ⇒ Object
Returns the value of attribute submitted_pages
3 4 5 |
# File 'lib/interfax/fax_item.rb', line 3 def submitted_pages @submitted_pages end |
Instance Method Details
#ok ⇒ Object
8 9 10 |
# File 'lib/interfax/fax_item.rb', line 8 def ok (status.to_i >= 0) ? true : false end |
#pages ⇒ Object
4 5 6 |
# File 'lib/interfax/fax_item.rb', line 4 def pages "#{sent_pages}/#{submitted_pages}" end |