Skip to content

Commit

Permalink
Update README documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JuzerShakir committed Dec 30, 2024
1 parent 8435d30 commit 50df931
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ require 'imdb_title'
# input a valid URL of any Movie, Tv-Show, Episode or Game from imdb.com
movie = IMDb::Title.new("https://www.imdb.com/title/tt0111161")

movie.title #=> The Shawshank Redemption
movie.tagline #=> Over the course of several years, two convicts...
movie.genres #=> ["Drama"]
movie.revenue #=> $28,884,716
movie.title #=> The Shawshank Redemption
movie.tagline #=> Over the course of several years, two convicts...
movie.genres #=> ["Drama"]
movie.revenue #=> $28,884,716

movie.ancestors #=> [IMDb::Title, Object, PP::ObjectMixin, ...]
movie.singleton_class.ancestors #=> <Class:#<IMDb::Title:0x00007f4a0bf22a40>>, Movie, NonInteractive, IMDb::Title, Object, PP::ObjectMixin, ...]
movie.ancestors #=> [IMDb::Title, Object, PP::ObjectMixin, ...]
movie.singleton_class.ancestors #=> <Class:#<IMDb::Title:0x00007f4a0bf22a40>>, Movie, NonInteractive, IMDb::Title, Object, PP::ObjectMixin, ...]
```

---
Expand All @@ -63,7 +63,7 @@ movie.singleton_class.ancestors #=> <Class:#<IMDb::Title:0x00007f4a0b

<details>
<summary>
<b>ALL title types</b>
<b>For ALL titles</b>
</summary>
<ol>
<li>title</li>
Expand All @@ -84,7 +84,7 @@ movie.singleton_class.ancestors #=> <Class:#<IMDb::Title:0x00007f4a0b

<details>
<summary>
<b>ALL title types EXCEPT Game</b>
<b>For ALL titles EXCEPT Game</b>
</summary>
<ol>
<li>duration</li>
Expand All @@ -95,7 +95,7 @@ movie.singleton_class.ancestors #=> <Class:#<IMDb::Title:0x00007f4a0b

<details>
<summary>
<b>ONLY for Movie title</b>
<b>Exculsive to Movie</b>
</summary>
<ol>
<li>budget</li>
Expand All @@ -105,18 +105,17 @@ movie.singleton_class.ancestors #=> <Class:#<IMDb::Title:0x00007f4a0b

---

### Return Types
### Methods that return

<details>
<summary>
<b>Array types:</b>
<b>Array</b>
</summary>
<ol>
<li>casts</li>
<li>genres</li>
<li>directors</li>
<li>production_companies</li>

</ol>
</details>

Expand Down

0 comments on commit 50df931

Please sign in to comment.