Class: Pastvu::InformationResponse

Inherits:
BasicResponse show all
Defined in:
lib/pastvu/response/information_response.rb

Instance Attribute Summary

Attributes inherited from BasicResponse

#hash, #json

Instance Method Summary collapse

Methods inherited from BasicResponse

#initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from Pastvu::BasicResponse

Instance Method Details

#to_photoObject



3
4
5
6
# File 'lib/pastvu/response/information_response.rb', line 3

def to_photo
  @hash ||= self.to_hash
  Photo.new @hash["result"]["photo"]
end