lib/printreleaf/account.rb in printreleaf-1.0.3 vs lib/printreleaf/account.rb in printreleaf-1.3.0
- old
+ new
@@ -21,15 +21,15 @@
property :accounts_count, transform_with: Transforms::Integer
property :users_count, transform_with: Transforms::Integer
property :mtd_pages, transform_with: Transforms::Integer
property :qtd_pages, transform_with: Transforms::Integer
property :ytd_pages, transform_with: Transforms::Integer
- property :lifetime_pages, transform_with: Transforms::Integer
+ property :ltd_pages, transform_with: Transforms::Integer
property :mtd_trees, transform_with: Transforms::Float
property :qtd_trees, transform_with: Transforms::Float
property :ytd_trees, transform_with: Transforms::Float
- property :lifetime_trees, transform_with: Transforms::Float
+ property :ltd_trees, transform_with: Transforms::Float
def self.mine
response = PrintReleaf.get("/account")
self.new(response)
end
@@ -70,19 +70,19 @@
def deposits
@deposits ||= Relation.new(self, Deposit)
end
+ def feeds
+ @feeds ||= Relation.new(self, Feed)
+ end
+
def invitations
@invitations ||= Relation.new(self, Invitation)
end
def servers
@servers ||= Relation.new(self, Server)
- end
-
- def sources
- @sources ||= Relation.new(self, Source)
end
def transactions
@transactions ||= Relation.new(self, Transaction)
end