Class: Esi::Calls::Info
- Inherits:
-
Object
- Object
- Esi::Calls::Info
- Defined in:
- lib/esi/calls/info.rb
Instance Attribute Summary collapse
-
#call ⇒ Object
readonly
Returns the value of attribute call.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #character? ⇒ Boolean
- #corporation? ⇒ Boolean
-
#initialize(name) ⇒ Info
constructor
A new instance of Info.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#call ⇒ Object (readonly)
Returns the value of attribute call.
6 7 8 |
# File 'lib/esi/calls/info.rb', line 6 def call @call end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/esi/calls/info.rb', line 6 def name @name end |
Instance Method Details
#character? ⇒ Boolean
18 19 20 |
# File 'lib/esi/calls/info.rb', line 18 def character? name.to_s.starts_with?('character') end |
#corporation? ⇒ Boolean
22 23 24 |
# File 'lib/esi/calls/info.rb', line 22 def corporation? name.to_s.starts_with?('corporat') end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/esi/calls/info.rb', line 14 def to_s @name.to_s end |