Class: RubyARES::Subject
- Inherits:
-
Object
- Object
- RubyARES::Subject
- Defined in:
- lib/ruby-ares/subject.rb
Instance Attribute Summary collapse
-
#addresses ⇒ Object
readonly
ICO.
-
#company ⇒ Object
readonly
ICO.
-
#dic ⇒ Object
readonly
ICO.
-
#ic ⇒ Object
readonly
ICO.
-
#ico ⇒ Object
readonly
ICO.
-
#name ⇒ Object
readonly
ICO.
-
#status ⇒ Object
readonly
ICO.
-
#updated_at ⇒ Object
readonly
ICO.
Class Method Summary collapse
Instance Method Summary collapse
- #address ⇒ Object
-
#initialize(ic, dic, name, status, addresses, updated_at) ⇒ Subject
constructor
A new instance of Subject.
Constructor Details
#initialize(ic, dic, name, status, addresses, updated_at) ⇒ Subject
Returns a new instance of Subject.
22 23 24 25 26 27 28 29 |
# File 'lib/ruby-ares/subject.rb', line 22 def initialize(ic, dic, name, status, addresses, updated_at) @ic, @ico = ic, ic @dic = dic @name, @company = name @status = status @addresses = addresses @updated_at = updated_at end |
Instance Attribute Details
#addresses ⇒ Object (readonly)
ICO
8 9 10 |
# File 'lib/ruby-ares/subject.rb', line 8 def addresses @addresses end |
#company ⇒ Object (readonly)
ICO
8 9 10 |
# File 'lib/ruby-ares/subject.rb', line 8 def company @company end |
#dic ⇒ Object (readonly)
ICO
8 9 10 |
# File 'lib/ruby-ares/subject.rb', line 8 def dic @dic end |
#ic ⇒ Object (readonly)
ICO
8 9 10 |
# File 'lib/ruby-ares/subject.rb', line 8 def ic @ic end |
#ico ⇒ Object (readonly)
ICO
8 9 10 |
# File 'lib/ruby-ares/subject.rb', line 8 def ico @ico end |
#name ⇒ Object (readonly)
ICO
8 9 10 |
# File 'lib/ruby-ares/subject.rb', line 8 def name @name end |
#status ⇒ Object (readonly)
ICO
8 9 10 |
# File 'lib/ruby-ares/subject.rb', line 8 def status @status end |
#updated_at ⇒ Object (readonly)
ICO
8 9 10 |
# File 'lib/ruby-ares/subject.rb', line 8 def updated_at @updated_at end |
Class Method Details
.get(ic) ⇒ Object
17 18 19 20 |
# File 'lib/ruby-ares/subject.rb', line 17 def self.get(ic) xml = RubyARES::HTTP.fetch_subject_xml ic RubyARES::Parser.get_subject xml end |
Instance Method Details
#address ⇒ Object
31 32 33 |
# File 'lib/ruby-ares/subject.rb', line 31 def address @addresses[0] end |