Class: SirvRestApi::AccountInfo
- Inherits:
-
Object
- Object
- SirvRestApi::AccountInfo
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Account information
Instance Attribute Summary collapse
-
#alias ⇒ Object
Returns the value of attribute alias.
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#cdn_url ⇒ Object
Returns the value of attribute cdn_url.
-
#date_created ⇒ Object
Returns the value of attribute date_created.
-
#fetching ⇒ Object
Returns the value of attribute fetching.
-
#file_size_limit ⇒ Object
Returns the value of attribute file_size_limit.
-
#minify ⇒ Object
Returns the value of attribute minify.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ AccountInfo
constructor
A new instance of AccountInfo.
Constructor Details
#initialize(data = {}) ⇒ AccountInfo
Returns a new instance of AccountInfo.
19 20 21 22 23 24 25 26 27 |
# File 'lib/sirv_rest_api/models.rb', line 19 def initialize(data = {}) @alias = data["alias"] @cdn_url = data["cdnURL"] @date_created = data["dateCreated"] @fetching = data["fetching"] @minify = data["minify"] @aliases = data["aliases"] @file_size_limit = data["fileSizeLimit"] end |
Instance Attribute Details
#alias ⇒ Object
Returns the value of attribute alias.
17 18 19 |
# File 'lib/sirv_rest_api/models.rb', line 17 def alias @alias end |
#aliases ⇒ Object
Returns the value of attribute aliases.
17 18 19 |
# File 'lib/sirv_rest_api/models.rb', line 17 def aliases @aliases end |
#cdn_url ⇒ Object
Returns the value of attribute cdn_url.
17 18 19 |
# File 'lib/sirv_rest_api/models.rb', line 17 def cdn_url @cdn_url end |
#date_created ⇒ Object
Returns the value of attribute date_created.
17 18 19 |
# File 'lib/sirv_rest_api/models.rb', line 17 def date_created @date_created end |
#fetching ⇒ Object
Returns the value of attribute fetching.
17 18 19 |
# File 'lib/sirv_rest_api/models.rb', line 17 def fetching @fetching end |
#file_size_limit ⇒ Object
Returns the value of attribute file_size_limit.
17 18 19 |
# File 'lib/sirv_rest_api/models.rb', line 17 def file_size_limit @file_size_limit end |
#minify ⇒ Object
Returns the value of attribute minify.
17 18 19 |
# File 'lib/sirv_rest_api/models.rb', line 17 def minify @minify end |