Class: VideoEmbed::ThirdPartyAPI
- Inherits:
-
Object
- Object
- VideoEmbed::ThirdPartyAPI
- Defined in:
- lib/video_embed/third_party_api.rb
Instance Attribute Summary collapse
-
#read_count ⇒ Object
readonly
Returns the value of attribute read_count.
Instance Method Summary collapse
- #get_request ⇒ Object
-
#initialize ⇒ ThirdPartyAPI
constructor
A new instance of ThirdPartyAPI.
Constructor Details
#initialize ⇒ ThirdPartyAPI
Returns a new instance of ThirdPartyAPI.
4 5 6 |
# File 'lib/video_embed/third_party_api.rb', line 4 def initialize @read_count = 0 end |
Instance Attribute Details
#read_count ⇒ Object (readonly)
Returns the value of attribute read_count.
3 4 5 |
# File 'lib/video_embed/third_party_api.rb', line 3 def read_count @read_count end |
Instance Method Details
#get_request ⇒ Object
7 8 9 |
# File 'lib/video_embed/third_party_api.rb', line 7 def get_request @read_count += 1 end |