Class: PensioAPI::Terminal
- Inherits:
-
Object
- Object
- PensioAPI::Terminal
- Includes:
- Mixins::MethodMissing
- Defined in:
- lib/pensio_api/terminal.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(terminal_body) ⇒ Terminal
constructor
A new instance of Terminal.
Methods included from Mixins::MethodMissing
Constructor Details
#initialize(terminal_body) ⇒ Terminal
Returns a new instance of Terminal.
12 13 14 15 |
# File 'lib/pensio_api/terminal.rb', line 12 def initialize(terminal_body) @raw = terminal_body @title = @raw['Title'] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PensioAPI::Mixins::MethodMissing
Instance Attribute Details
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/pensio_api/terminal.rb', line 5 def title @title end |