Class: Pendulum::Command::Apply::ResultURL
- Inherits:
-
Object
- Object
- Pendulum::Command::Apply::ResultURL
- Defined in:
- lib/pendulum/command/apply/result_url.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
- #changed? ⇒ Boolean
-
#initialize(client, from, to) ⇒ ResultURL
constructor
A new instance of ResultURL.
Constructor Details
#initialize(client, from, to) ⇒ ResultURL
Returns a new instance of ResultURL.
5 6 7 8 9 |
# File 'lib/pendulum/command/apply/result_url.rb', line 5 def initialize(client, from, to) self.client = client self.from = from self.to = to end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/pendulum/command/apply/result_url.rb', line 4 def client @client end |
#from ⇒ Object
Returns the value of attribute from.
4 5 6 |
# File 'lib/pendulum/command/apply/result_url.rb', line 4 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
4 5 6 |
# File 'lib/pendulum/command/apply/result_url.rb', line 4 def to @to end |
Instance Method Details
#changed? ⇒ Boolean
11 12 13 14 15 16 17 |
# File 'lib/pendulum/command/apply/result_url.rb', line 11 def changed? if from.start_with?('{') json_changed? else url_changed? end end |