2
votes
3answers
256 views

Communication between two classes in ruby

I cannot understand how I can make two classes work together by passing variables between them. During the last 5 days, I learned the basics of inheritance, singleton methods and eval methods. I even ...
1
vote
2answers
162 views

Ruby - class definition for connecting to external API

I've defined a Client class to connect to an external API. The Client class will return XML responses for various resources. Here's what it looks like now: require 'nokogiri' class Client ...
2
votes
1answer
139 views

How would you ruby-fy this non-AR model class for Ruby on Rails app?

This is a class from my rails application. It is used as non-database model in my RoR application and uses syntax similar to AR design pattern. I wonder is there a way to make this look more like Ruby ...