Created
August 26, 2016 14:10
-
-
Save briu/9cf310c14e3680a6f076af545aecc20c 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 Client | |
attr_reader :item | |
def initialize(item) | |
@item = item | |
end | |
def calculate_something | |
80 * 20 | |
end | |
# item it's object that have some different | |
# set of methods: [created_at, balance, goods], [one, two, three] | |
# How we can execute methods from item when it executes on Client instance variable | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment