Created
March 29, 2016 00:23
-
-
Save perezpaya/56a30024e55e0c9062c4 to your computer and use it in GitHub Desktop.
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
class CompanySerializer < ApplicationSerializer | |
attributes :name, | |
:stock_symbol, | |
:stock_price, | |
:stock_volume, | |
:number_of_shares, | |
:volume_price, | |
:valuation | |
has_one :ceo | |
end | |
class PersonSerializer < ApplicationSerializer | |
attributes :name | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment