-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RM-1085: SparkAPI Mods to create a generic "media" structure (#171)
* RM-1127: Added media_privacy module * RM-1127: Changing how this module is brought in * RM-1127 Revert last change * RM-1127: Fixed missing require * RM-1127: Testing non-module version * RM-1127: Revert last change * RM-1127: Allowing video and virtual_tour to be savable * RM-1127: Update path support * RM-1127: Undoing last change * RM-1127: Tweaking this to provide better shared functionality. * RM-1127: Missed a spot * RM-1127: Video and virtual tour thumbnail code * RM-1127: Nixing OGP stuff for virtual tour display image * RM-1127: Added media_privacy module * RM-1127: Changing how this module is brought in * RM-1127 Revert last change * RM-1127: Fixed missing require * RM-1127: Testing non-module version * RM-1127: Revert last change * RM-1127: Allowing video and virtual_tour to be savable * RM-1127: Update path support * RM-1127: Undoing last change * RM-1127: Tweaking this to provide better shared functionality. * RM-1127: Missed a spot * RM-1127: Video and virtual tour thumbnail code * RM-1127: Nixing OGP stuff for virtual tour display image * RM-1085: Version bump Co-authored-by: Hadley Markoski <[email protected]>
- Loading branch information
Showing
6 changed files
with
159 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.5.0 | ||
1.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module SparkApi | ||
module Models | ||
module Media | ||
# This module is effectively an interface and helper to combine common media | ||
# actions and information. Media types (videos, virtual tours, etc) | ||
# should include this module and implement the methods contained | ||
|
||
def url | ||
raise "Not Implemented" | ||
end | ||
|
||
def description | ||
raise "Not Implemented" | ||
end | ||
|
||
def private? | ||
attributes['Privacy'] == 'Private' | ||
end | ||
|
||
def public? | ||
attributes['Privacy'] == 'Public' | ||
end | ||
|
||
def automatic? | ||
attributes['Privacy'] == 'Automatic' | ||
end | ||
|
||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters