Class: Pastvu::InformationResponse
- Inherits:
-
BasicResponse
- Object
- BasicResponse
- Pastvu::InformationResponse
- Defined in:
- lib/pastvu/response/information_response.rb
Instance Attribute Summary
Attributes inherited from BasicResponse
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_photo ⇒ Object
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 |