This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
John Pignata
committed
Dec 28, 2009
1 parent
02f5f2f
commit 0c980a1
Showing
2 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
module BOSSMan | ||
class BaseValueObject | ||
def set_parameter(key, value) | ||
instance_variable_set("@#{key}", value) | ||
end | ||
|
||
def to_yaml | ||
@response.to_yaml | ||
end | ||
|
||
def set_parameter(key, value) | ||
instance_variable_set("@#{key}", value) | ||
end | ||
|
||
def method_missing(*args) | ||
method = args.first | ||
instance_variable_get("@#{method}") | ||
end | ||
|
||
def to_json | ||
ActiveSupport::JSON.encode(@response) | ||
end | ||
def method_missing(*args) | ||
method = args.first | ||
instance_variable_get("@#{method}") | ||
end | ||
def to_yaml | ||
@response.to_yaml | ||
end | ||
|
||
def to_json | ||
ActiveSupport::JSON.encode(@response) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters