Class: Weimark::Application
- Inherits:
-
Object
- Object
- Weimark::Application
- Defined in:
- lib/weimark/client.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(application_attributes = {}) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(application_attributes = {}) ⇒ Application
Returns a new instance of Application.
113 114 115 116 117 118 |
# File 'lib/weimark/client.rb', line 113 def initialize(application_attributes = {}) @id = application_attributes['id'] @timestamp = application_attributes['timestamp'] @link = application_attributes['link'] @status = application_attributes['status'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
111 112 113 |
# File 'lib/weimark/client.rb', line 111 def id @id end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
111 112 113 |
# File 'lib/weimark/client.rb', line 111 def link @link end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
111 112 113 |
# File 'lib/weimark/client.rb', line 111 def status @status end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
111 112 113 |
# File 'lib/weimark/client.rb', line 111 def @timestamp end |