Class: Interfax::FaxItem

Inherits:
Struct
  • Object
show all
Defined in:
lib/interfax/fax_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def duration
  @duration
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def id
  @id
end

#postpone_timeObject

Returns the value of attribute postpone_time

Returns:

  • (Object)

    the current value of postpone_time



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def postpone_time
  @postpone_time
end

#receiver_numberObject

Returns the value of attribute receiver_number

Returns:

  • (Object)

    the current value of receiver_number



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def receiver_number
  @receiver_number
end

#remote_csidObject

Returns the value of attribute remote_csid

Returns:

  • (Object)

    the current value of remote_csid



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def remote_csid
  @remote_csid
end

#sent_pagesObject

Returns the value of attribute sent_pages

Returns:

  • (Object)

    the current value of sent_pages



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def sent_pages
  @sent_pages
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def status
  @status
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def subject
  @subject
end

#submit_timeObject

Returns the value of attribute submit_time

Returns:

  • (Object)

    the current value of submit_time



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def submit_time
  @submit_time
end

#submitted_pagesObject

Returns the value of attribute submitted_pages

Returns:

  • (Object)

    the current value of submitted_pages



3
4
5
# File 'lib/interfax/fax_item.rb', line 3

def 
  @submitted_pages
end

Instance Method Details

#okObject



8
9
10
# File 'lib/interfax/fax_item.rb', line 8

def ok
  (status.to_i >= 0) ? true : false
end

#pagesObject



4
5
6
# File 'lib/interfax/fax_item.rb', line 4

def pages
  "#{sent_pages}/#{}"
end