Method: Megam::Subscriptions.from_hash

Defined in:
lib/megam/core/subscriptions.rb

.from_hash(o, tmp_email = nil, tmp_api_key = nil, tmp_host = nil) ⇒ Object



126
127
128
129
130
# File 'lib/megam/core/subscriptions.rb', line 126

def self.from_hash(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
    sbs = self.new(tmp_email, tmp_api_key, tmp_host)
    sbs.from_hash(o)
    sbs
end