Class: OverSIP::SIP::RFC3263::Target
- Inherits:
-
Struct
- Object
- Struct
- OverSIP::SIP::RFC3263::Target
- Defined in:
- lib/oversip/sip/rfc3263.rb,
lib/oversip/sip/rfc3263.rb
Instance Attribute Summary collapse
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#ip_type ⇒ Object
Returns the value of attribute ip_type.
-
#port ⇒ Object
Returns the value of attribute port.
-
#transport ⇒ Object
Returns the value of attribute transport.
Instance Method Summary collapse
Instance Attribute Details
#ip ⇒ Object
Returns the value of attribute ip
5 6 7 |
# File 'lib/oversip/sip/rfc3263.rb', line 5 def ip @ip end |
#ip_type ⇒ Object
Returns the value of attribute ip_type
5 6 7 |
# File 'lib/oversip/sip/rfc3263.rb', line 5 def ip_type @ip_type end |
#port ⇒ Object
Returns the value of attribute port
5 6 7 |
# File 'lib/oversip/sip/rfc3263.rb', line 5 def port @port end |
#transport ⇒ Object
Returns the value of attribute transport
5 6 7 |
# File 'lib/oversip/sip/rfc3263.rb', line 5 def transport @transport end |
Instance Method Details
#to_s ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/oversip/sip/rfc3263.rb', line 8 def to_s if self[2] == :ipv4 "#{self[0]}:#{self[1]}:#{self[3]}" else "#{self[0]}:[#{self[1]}]:#{self[3]}" end end |