Class: Infostrada::Endpoint
- Inherits:
-
Object
- Object
- Infostrada::Endpoint
- Defined in:
- lib/infostrada/call_refresh.rb
Instance Attribute Summary collapse
-
#last_modified ⇒ Object
Returns the value of attribute last_modified.
-
#method ⇒ Object
Returns the value of attribute method.
-
#query_string ⇒ Object
Returns the value of attribute query_string.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Endpoint
constructor
A new instance of Endpoint.
Constructor Details
#initialize(hash) ⇒ Endpoint
Returns a new instance of Endpoint.
81 82 83 84 85 86 87 |
# File 'lib/infostrada/call_refresh.rb', line 81 def initialize(hash) @method = hash['c_Method'] @last_modified = Formatter.format_date(hash['d_LastModified']) @query_string = hash['c_QueryString'] self end |
Instance Attribute Details
#last_modified ⇒ Object
Returns the value of attribute last_modified.
79 80 81 |
# File 'lib/infostrada/call_refresh.rb', line 79 def last_modified @last_modified end |
#method ⇒ Object
Returns the value of attribute method.
79 80 81 |
# File 'lib/infostrada/call_refresh.rb', line 79 def method @method end |
#query_string ⇒ Object
Returns the value of attribute query_string.
79 80 81 |
# File 'lib/infostrada/call_refresh.rb', line 79 def query_string @query_string end |